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.String
The caption. |
CaptionElement
Gets the caption element.
Declaration
public LightVisualElement CaptionElement { get; }
Property Value
LightVisualElement
The caption element. |
Description
Gets or sets the text of the description label.
Declaration
public string Description { get; set; }
Property Value
System.String
|
DescriptionElement
Gets the description element.
Declaration
public LightVisualElement DescriptionElement { get; }
Property Value
LightVisualElement
The description element. |
Direction
GGets or sets the direction of rating element paint (Standard, Reversed).
Declaration
public RatingDirection Direction { get; set; }
Property Value
RatingDirection
The direction. |
ElementOrientation
Gets or sets the orientation of the rating control (Horizontal, Vertical).
Declaration
public Orientation ElementOrientation { get; set; }
Property Value
System.Windows.Forms.Orientation
|
ElementsLayout
Gets the elements layout.
Declaration
public StackLayoutElement ElementsLayout { get; }
Property Value
StackLayoutElement
The elements layout. |
HoverValue
Gets or sets the hover value.
Declaration
public double HoverValue { get; set; }
Property Value
System.Double
The hover value. |
IsInRadGridView
Declaration
public bool IsInRadGridView { get; set; }
Property Value
System.Boolean
|
Items
Gets the rating items collection.
Declaration
public RadItemOwnerCollection Items { get; }
Property Value
RadItemOwnerCollection
The items. |
Maximum
Gets or sets the maximum value of rating element.
Declaration
public double Maximum { get; set; }
Property Value
System.Double
The maximum. |
Exceptions
System.ArgumentException
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.Double
The minimum. |
Exceptions
System.ArgumentException
The Minimum should be lower than the Maximum |
PercentageRounding
Gets or sets the percentage rounding.
Declaration
public double PercentageRounding { get; set; }
Property Value
System.Double
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.Boolean
|
SelectedValue
Gets or sets the selected value.
Declaration
public virtual double SelectedValue { get; set; }
Property Value
System.Double
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
RatingSelectionMode
|
ShouldPaintHover
Gets or sets whether the Hover layer should be applied.
Declaration
public bool ShouldPaintHover { get; set; }
Property Value
System.Boolean
|
SubCaption
Gets or sets the text of the Sub Caption label.
Declaration
public string SubCaption { get; set; }
Property Value
System.String
The sub caption. |
SubCaptionElement
Gets the sub caption element.
Declaration
public LightVisualElement SubCaptionElement { get; }
Property Value
LightVisualElement
The sub caption element. |
ToolTipDuration
Gets or sets the duration of the tool tip.
Declaration
public int ToolTipDuration { get; set; }
Property Value
System.Int32
|
ToolTipFormatString
Gets or sets the tool tip format string.
Declaration
public string ToolTipFormatString { get; set; }
Property Value
System.String
The tool tip format string. |
ToolTipOffset
Gets or sets the tool tip offset.
Declaration
public Point ToolTipOffset { get; set; }
Property Value
System.Drawing.Point
The tool tip offset. |
ToolTipPrecision
Gets or sets the tool tip precision.
Declaration
public double ToolTipPrecision { get; set; }
Property Value
System.Double
The tool tip precision. |
Value
Gets or sets the value of the rating.
Declaration
public double? Value { get; set; }
Property Value
System.Nullable<System.Double>
|
Methods
CreateChildElements()
Declaration
protected override void CreateChildElements()
Overrides
GetElementIndex(Nullable<Double>)
Declaration
protected virtual int GetElementIndex(double? value)
Parameters
System.Nullable<System.Double>
value
|
Returns
System.Int32
|
GetNormalizedValue(Nullable<Double>)
Declaration
protected virtual double GetNormalizedValue(double? value)
Parameters
System.Nullable<System.Double>
value
|
Returns
System.Double
|
GetRelativePoint(Int32, RatingBaseVisualElement, Nullable<Double>)
Declaration
protected virtual Point GetRelativePoint(int elementIndex, RatingBaseVisualElement currentVisualElement, double? value)
Parameters
System.Int32
elementIndex
|
RatingBaseVisualElement
currentVisualElement
|
System.Nullable<System.Double>
value
|
Returns
System.Drawing.Point
|
InitializeFields()
Declaration
protected override void InitializeFields()
Overrides
MeasureOverride(SizeF)
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System.Drawing.SizeF
availableSize
|
Returns
System.Drawing.SizeF
|
Overrides
OnClick(EventArgs)
Declaration
protected override void OnClick(EventArgs e)
Parameters
System.EventArgs
e
|
Overrides
OnMouseDown(MouseEventArgs)
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs
e
|
Overrides
OnMouseLeave(EventArgs)
Declaration
protected override void OnMouseLeave(EventArgs e)
Parameters
System.EventArgs
e
|
Overrides
OnMouseMove(MouseEventArgs)
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs
e
|
Overrides
OnMouseUp(MouseEventArgs)
Declaration
protected override void OnMouseUp(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs
e
|
Overrides
OnNotifyPropertyChanged(String)
Declaration
protected override void OnNotifyPropertyChanged(string propertyName)
Parameters
System.String
propertyName
|
Overrides
OnPropertyChanged(RadPropertyChangedEventArgs)
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
RadPropertyChangedEventArgs
e
|
Overrides
OnValueChanged(EventArgs)
Declaration
protected virtual void OnValueChanged(EventArgs e)
Parameters
System.EventArgs
e
|
OnValueChanging(ValueChangingEventArgs)
Declaration
protected virtual void OnValueChanging(ValueChangingEventArgs e)
Parameters
ValueChangingEventArgs
e
|
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.Int32
currentIndex
|
RatingVisualElement
element
|
System.Windows.Forms.MouseEventArgs
e
|
Returns
System.Double
|
VisualElementsBounds()
Declaration
protected Rectangle VisualElementsBounds()
Returns
System.Drawing.Rectangle
|
Events
ValueChanged
Occurs before the value of the RatingElement is changed.
Declaration
public event EventHandler ValueChanged
Event Type
System.EventHandler
|
ValueChanging
Occurs when the value is being changed. Cancelable event.
Declaration
public event ValueChangingEventHandler ValueChanging
Event Type
ValueChangingEventHandler
|