Class DrawLabelEventArgs
Provides data to the DrawLabel event of the RadialGauge control.
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Forms.Gauge
Assembly: Syncfusion.Gauge.Windows.dll
Syntax
public class DrawLabelEventArgs : EventArgs
Constructors
DrawLabelEventArgs(String, Color, Font, Boolean, LabelAlignment, LabelType, Point)
Initializes a new instance of the DrawLabelEventArgs class.
Declaration
public DrawLabelEventArgs(string text, Color foreColor, Font font, bool handled, LabelAlignment alignment, LabelType labelType, Point offset)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | text | Custom label to drawn in RadialGauge |
| System.Drawing.Color | foreColor | Foreground color of label to draw in RadialGauge. |
| System.Drawing.Font | font | Font of label to draw in RadialGauge. |
| System.Boolean | handled | Value indicating whether to custom draw label in RadialGauge. |
| LabelAlignment | alignment | Specifies the alignment of the label relative to the gauge. |
| LabelType | labelType | Specifies the type of label being drawn. |
| System.Drawing.Point | offset | Pixel offset from the default label position. |
Properties
Font
Gets or sets the font of label to draw in RadialGauge.
Declaration
public Font Font { get; set; }
Property Value
| Type |
|---|
| System.Drawing.Font |
ForeColor
Gets or sets the foreground color of label to draw in RadialGauge.
Declaration
public Color ForeColor { get; set; }
Property Value
| Type |
|---|
| System.Drawing.Color |
Handled
Gets or sets a value that indicates whether to draw custom draw labels in RadialGauge.
Declaration
public bool Handled { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
LabelAlignment
Gets or sets the alignment of the GaugeLabel or Value when the LabelType is Default and Value.
Declaration
public LabelAlignment LabelAlignment { get; set; }
Property Value
| Type |
|---|
| LabelAlignment |
LabelType
Gets the type of label that is being drawn in RadialGauge.
Declaration
public LabelType LabelType { get; }
Property Value
| Type |
|---|
| LabelType |
Offset
Gets or sets a point to adjust the Label horizontally and vertically based on the value specified in X and Y coordinates.
Declaration
public Point Offset { get; set; }
Property Value
| Type |
|---|
| System.Drawing.Point |
Text
Gets or sets the text for custom label to draw in RadialGauge.
Declaration
public string Text { get; set; }
Property Value
| Type |
|---|
| System.String |