Class RatingControl
Inheritance
System.Object
RatingControl
Implements
System.IDisposable
Assembly: Syncfusion.Tools.Windows.dll
public class RatingControl : BaseControl, IThemeProvider, IVisualStyle, IDisposable
Constructors
Declaration
Properties
Gets or Sets whether to apply the gradient colors
Declaration
public bool ApplyGradientColors { get; set; }
Property Value
Gets or Sets the Drawmode
Declaration
public Drawmodes DrawMode { get; set; }
Property Value
Get or set for the CustomImageCollection
Declaration
public CustomImageCollection Images { get; set; }
Property Value
Gets or Sets ShapeBackColor
Declaration
public Color ItemBackColor { get; set; }
Property Value
Type |
System.Drawing.Color |
Gets or Sets the Shapes border color
Declaration
public Color ItemBorderColor { get; set; }
Property Value
Type |
System.Drawing.Color |
Gets or Sets the Shape Border weight
Declaration
public int ItemBorderWeight { get; set; }
Property Value
Gets or Sets the Shape highlight color
Declaration
public Color ItemHighlightColor { get; set; }
Property Value
Type |
System.Drawing.Color |
Gets or Sets the Shape highlight color
Declaration
public Color ItemHighlightEndColor { get; set; }
Property Value
Type |
System.Drawing.Color |
Gets or Sets the Gradient Highlight Start Color
Declaration
public Color ItemHighlightStartColor { get; set; }
Property Value
Type |
System.Drawing.Color |
Gets or Sets the number of shapes to be drawn
Declaration
public int ItemsCount { get; set; }
Property Value
Gets or Sets the Shape Selection color
Declaration
public Color ItemSelectionColor { get; set; }
Property Value
Type |
System.Drawing.Color |
Gets or Sets the Shape Selection end color
Declaration
public Color ItemSelectionEndColor { get; set; }
Property Value
Type |
System.Drawing.Color |
Gets or Sets the shape selection start color
Declaration
public Color ItemSelectionStartColor { get; set; }
Property Value
Type |
System.Drawing.Color |
Gets or Sets the Shape size
Declaration
public Size ItemSize { get; set; }
Property Value
Gets or Sets the Shape Border weight
Declaration
public Color MetroColor { get; set; }
Property Value
Type |
System.Drawing.Color |
Gets or Sets the Office 2007 ColorScheme.
Declaration
public OfficeColorSchemes OfficeColorScheme { get; set; }
Property Value
Declaration
public Orientationmode Orientation { get; set; }
Property Value
Gets or Sets the Precision types
Declaration
public PrecisionMode Precision { get; set; }
Property Value
Gets or Sets whether to enable readonly mode
Declaration
public bool ReadOnly { get; set; }
Property Value
Get or set for the ResetButton.
Declaration
public ResetButton ResetButton { get; set; }
Property Value
Declaration
public CustomButtonRenderer ResetButtonSettings { get; }
Property Value
Gets or Sets the Shapes to be drawn
Declaration
public Shapes Shape { get; set; }
Property Value
Gets or Sets Whether to show the ToolTip.
Declaration
public bool ShowTooltip { get; set; }
Property Value
Gets or Sets the Spacing between the shapes
Declaration
public int Spacing { get; set; }
Property Value
Gets or Sets the value of Visual Style for the Rating Control.
Declaration
public RatingControl.Styles Style { get; set; }
Property Value
Declaration
public RatingControlVisualStyle ThemeStyle { get; set; }
Property Value
Get for the ToolTipSettings.
Declaration
public ToolTipInfo ToolTipSettings { get; }
Property Value
Gets or Sets the Rating value
Declaration
public float Value { get; set; }
Property Value
Methods
New instance for AccessibleObject
Declaration
protected override AccessibleObject CreateAccessibilityInstance()
Returns
Type |
Description |
System.Windows.Forms.AccessibleObject |
RatingControlAccessibleObject
|
Clean up any resources being used.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
System.Boolean |
disposing |
true if managed resources should be disposed; otherwise, false.
|
Declaration
protected void DrawCircle(Graphics g, Rectangle rect, int starAreaIndex)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Rectangle |
rect |
|
System.Int32 |
starAreaIndex |
|
Declaration
protected void DrawCircleOfficeStyle(Graphics g, Rectangle rect, int starAreaIndex)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Rectangle |
rect |
|
System.Int32 |
starAreaIndex |
|
Draws the Custom Shape with the provided image
Declaration
protected void DrawCustomShapeOfficeStyle(Graphics g, Rectangle rect, int starAreaIndex)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Rectangle |
rect |
|
System.Int32 |
starAreaIndex |
|
Draws the customshapes images
Declaration
protected void DrawCustomShapes(Graphics g, Rectangle rect, int starAreaIndex)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Rectangle |
rect |
|
System.Int32 |
starAreaIndex |
|
Declaration
protected void DrawHeart(Graphics g, Rectangle rect, int starAreaIndex)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Rectangle |
rect |
|
System.Int32 |
starAreaIndex |
|
Declaration
protected void DrawHeartOfficeStyle(Graphics g, Rectangle rect, int starAreaIndex)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Rectangle |
rect |
|
System.Int32 |
starAreaIndex |
|
Draws the basic shapes with provided points
Declaration
protected void DrawShape(Graphics g, Rectangle rect, int starAreaIndex)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Rectangle |
rect |
|
System.Int32 |
starAreaIndex |
|
Draws the basic shapes with provided points
Declaration
protected void DrawShapeOfficeStyle(Graphics g, Rectangle rect, int starAreaIndex)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Rectangle |
rect |
|
System.Int32 |
starAreaIndex |
|
Helps to apply the ControlName settings in control
Declaration
public override string GetControlName(string controlName)
Parameters
Type |
Name |
Description |
System.String |
controlName |
|
Returns
Overrides
Helps to apply the CanApplyTheme settings in control
Declaration
public override void OnCanApplyThemeChanged(bool canApplyTheme)
Parameters
Type |
Name |
Description |
System.Boolean |
canApplyTheme |
|
Overrides
Helps to apply the CanOverriderStyle settings in control
Declaration
public override void OnCanOverrideStyleChanged(bool canOverriderStyle)
Parameters
Type |
Name |
Description |
System.Boolean |
canOverriderStyle |
|
Overrides
Control's onClick has been overrided to calculate the selected star and selected half star
Declaration
protected override void OnClick(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Declaration
protected void OnDrawCircle(Graphics g, Rectangle rect, int starAreaIndex)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Rectangle |
rect |
|
System.Int32 |
starAreaIndex |
|
Draws the customshapes images
Declaration
protected void OnDrawCustomShapes(Graphics g, Rectangle rect, int starAreaIndex)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Rectangle |
rect |
|
System.Int32 |
starAreaIndex |
|
Declaration
protected void OnDrawHeart(Graphics g, Rectangle rect, int starAreaIndex)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Rectangle |
rect |
|
System.Int32 |
starAreaIndex |
|
Draws the basic shapes with provided points
Declaration
protected void OnDrawShape(Graphics g, Rectangle rect, int starAreaIndex)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Rectangle |
rect |
|
System.Int32 |
starAreaIndex |
|
OnMouseDown method to calculated the number of selecting shapes
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.MouseEventArgs |
e |
|
Mouse enter method has been overrided
Declaration
protected override void OnMouseEnter(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Mouse leave method has been overrided
Declaration
protected override void OnMouseLeave(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Overrided mouse move method
Declaration
protected override void OnMouseMove(MouseEventArgs args)
Parameters
Type |
Name |
Description |
System.Windows.Forms.MouseEventArgs |
args |
|
Mouse up method has been overrided
Declaration
protected override void OnMouseUp(MouseEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.MouseEventArgs |
e |
|
Overrides the Control's Paint method
Declaration
protected override void OnPaint(PaintEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.PaintEventArgs |
e |
|
Overrides the Size changed method
Declaration
protected override void OnSizeChanged(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Helps to apply the ThemeName settings in control
Declaration
public override void OnThemeNameChanged(string themeName)
Parameters
Type |
Name |
Description |
System.String |
themeName |
ThemeName
|
Overrides
Declaration
protected void OnValueChanged(float value)
Parameters
Type |
Name |
Description |
System.Single |
value |
|
Declaration
protected void OnValueChanging(float value, ToolTipInfo tooltip)
Parameters
Type |
Name |
Description |
System.Single |
value |
|
ToolTipInfo |
tooltip |
|
Reset method that resets the value
Declaration
Events
Declaration
public event QueryShapeInfoHandler QueryShapeInfo
Event Type
Declaration
public event RatingValueChangedEventHandler ValueChanged
Event Type
Declaration
public event ValueChangingEventHandler ValueChanging
Event Type
Implements
System.IDisposable