Class RadRatingElement
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class RadRatingElement : StackLayoutElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider
Constructors
RadRatingElement()
Declaration
public RadRatingElement()
Fields
ValueProperty
Properties
Caption
Gets or sets the text of the Caption label.
Declaration
public string Caption { get; set; }
Property Value
System. The caption. |
CaptionElement
Gets the caption element.
Declaration
public LightVisualElement CaptionElement { get; }
Property Value
Light The caption element. |
Description
Gets or sets the text of the description label.
Declaration
public string Description { get; set; }
Property Value
System.
|
DescriptionElement
Gets the description element.
Declaration
public LightVisualElement DescriptionElement { get; }
Property Value
Light The description element. |
Direction
GGets or sets the direction of rating element paint (Standard, Reversed).
Declaration
public RatingDirection Direction { get; set; }
Property Value
Rating The direction. |
ElementOrientation
Gets or sets the orientation of the rating control (Horizontal, Vertical).
Declaration
public Orientation ElementOrientation { get; set; }
Property Value
System.
|
ElementsLayout
Gets the elements layout.
Declaration
public StackLayoutElement ElementsLayout { get; }
Property Value
Stack The elements layout. |
HoverValue
Gets or sets the hover value.
Declaration
public double HoverValue { get; set; }
Property Value
System. The hover value. |
IsInRadGridView
Declaration
public bool IsInRadGridView { get; set; }
Property Value
System.
|
Items
Gets the rating items collection.
Declaration
public RadItemOwnerCollection Items { get; }
Property Value
Rad The items. |
Maximum
Gets or sets the maximum value of rating element.
Declaration
public double Maximum { get; set; }
Property Value
System. The maximum. |
Exceptions
System. The Maximum should be bigger than the Minimum |
Minimum
Gets or sets the minimum value of rating element.
Declaration
public double Minimum { get; set; }
Property Value
System. The minimum. |
Exceptions
System. The Minimum should be lower than the Maximum |
PercentageRounding
Gets or sets the percentage rounding.
Declaration
public double PercentageRounding { get; set; }
Property Value
System. The percentage rounding. |
ReadOnly
Gets or sets a value indicating whether the element is read-only.
Declaration
public bool ReadOnly { get; set; }
Property Value
System.
|
SelectedValue
Gets or sets the selected value.
Declaration
public virtual double SelectedValue { get; set; }
Property Value
System. The selected value. |
SelectionMode
Gets or sets the selection mode of the rating control (full item, half item, precise selection).
Declaration
public RatingSelectionMode SelectionMode { get; set; }
Property Value
ShouldPaintHover
Gets or sets whether the Hover layer should be applied.
Declaration
public bool ShouldPaintHover { get; set; }
Property Value
System.
|
SubCaption
Gets or sets the text of the Sub Caption label.
Declaration
public string SubCaption { get; set; }
Property Value
System. The sub caption. |
SubCaptionElement
Gets the sub caption element.
Declaration
public LightVisualElement SubCaptionElement { get; }
Property Value
Light The sub caption element. |
ToolTipDuration
Gets or sets the duration of the tool tip.
Declaration
public int ToolTipDuration { get; set; }
Property Value
System.
|
ToolTipFormatString
Gets or sets the tool tip format string.
Declaration
public string ToolTipFormatString { get; set; }
Property Value
System. The tool tip format string. |
ToolTipOffset
Gets or sets the tool tip offset.
Declaration
public Point ToolTipOffset { get; set; }
Property Value
System. The tool tip offset. |
ToolTipPrecision
Gets or sets the tool tip precision.
Declaration
public double ToolTipPrecision { get; set; }
Property Value
System. The tool tip precision. |
Value
Gets or sets the value of the rating.
Declaration
public double? Value { get; set; }
Property Value
System.
|
Methods
CreateChildElements()
Declaration
protected override void CreateChildElements()
Overrides
GetElementIndex(Nullable<Double>)
Declaration
protected virtual int GetElementIndex(double? value)
Parameters
System.
|
Returns
System.
|
GetNormalizedValue(Nullable<Double>)
Declaration
protected virtual double GetNormalizedValue(double? value)
Parameters
System.
|
Returns
System.
|
GetRelativePoint(Int32, RatingBaseVisualElement, Nullable<Double>)
Declaration
protected virtual Point GetRelativePoint(int elementIndex, RatingBaseVisualElement currentVisualElement, double? value)
Parameters
System.
|
Rating
|
System.
|
Returns
System.
|
InitializeFields()
Declaration
protected override void InitializeFields()
Overrides
MeasureOverride(SizeF)
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System.
|
Returns
System.
|
Overrides
OnClick(EventArgs)
Declaration
protected override void OnClick(EventArgs e)
Parameters
System.
|
Overrides
OnMouseDown(MouseEventArgs)
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
System.
|
Overrides
OnMouseLeave(EventArgs)
Declaration
protected override void OnMouseLeave(EventArgs e)
Parameters
System.
|
Overrides
OnMouseMove(MouseEventArgs)
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
System.
|
Overrides
OnMouseUp(MouseEventArgs)
Declaration
protected override void OnMouseUp(MouseEventArgs e)
Parameters
System.
|
Overrides
OnNotifyPropertyChanged(String)
Declaration
protected override void OnNotifyPropertyChanged(string propertyName)
Parameters
System.
|
Overrides
OnPropertyChanged(RadPropertyChangedEventArgs)
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
Overrides
OnValueChanged(EventArgs)
Declaration
protected virtual void OnValueChanged(EventArgs e)
Parameters
System.
|
OnValueChanging(ValueChangingEventArgs)
Declaration
protected virtual void OnValueChanging(ValueChangingEventArgs e)
Parameters
PaintValueLevel()
Declaration
protected virtual void PaintValueLevel()
ResetValues()
Declaration
protected void ResetValues()
UpdateCurrentValue(Int32, RatingVisualElement, MouseEventArgs)
Declaration
protected virtual double UpdateCurrentValue(int currentIndex, RatingVisualElement element, MouseEventArgs e)
Parameters
System.
|
Rating
|
System.
|
Returns
System.
|
VisualElementsBounds()
Declaration
protected Rectangle VisualElementsBounds()
Returns
System.
|
Events
ValueChanged
Occurs before the value of the RatingElement is changed.
Declaration
public event EventHandler ValueChanged
Event Type
System.
|
ValueChanging
Occurs when the value is being changed. Cancelable event.
Declaration
public event ValueChangingEventHandler ValueChanging