Class DigitalGauge
Digital Gauge class
Inheritance
Implements
Namespace: Syncfusion.Windows.Forms.Gauge
Assembly: Syncfusion.Gauge.Windows.dll
Syntax
public class DigitalGauge : Control, IVisualStyle
Constructors
DigitalGauge()
Initializes a new instance of DigitalGauge class
Declaration
public DigitalGauge()
Properties
BackColor
Gets or sets the background color.
Declaration
public override Color BackColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
BackgroundGradientEndColor
Gets or sets the gradient end color for the background.
Declaration
public Color BackgroundGradientEndColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
BackgroundGradientStartColor
Gets or sets the gradient start color for the background.
Declaration
public Color BackgroundGradientStartColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
BackgroundImage
Specifies the background image for the control
Declaration
public override Image BackgroundImage { get; }
Property Value
Type |
---|
System.Drawing.Image |
BackgroundImageLayout
Specifies the image layout for the background image.
Declaration
public override ImageLayout BackgroundImageLayout { get; }
Property Value
Type |
---|
System.Windows.Forms.ImageLayout |
CharacterCount
Gets or sets the number of characters to be displayed.
Declaration
public int CharacterCount { get; set; }
Property Value
Type |
---|
System.Int32 |
CharacterType
Gets or sets the value to choose the segment type.
Declaration
public CharacterType CharacterType { get; set; }
Property Value
Type |
---|
CharacterType |
DataManager
Gets the CurrencyManager of the bound list.
Declaration
protected CurrencyManager DataManager { get; }
Property Value
Type |
---|
System.Windows.Forms.CurrencyManager |
DataMember
Specifies the secondary list of Datasource, to display it
Declaration
public string DataMember { get; set; }
Property Value
Type |
---|
System.String |
DataSource
Specifies the data source for the control.
Declaration
public object DataSource { get; set; }
Property Value
Type |
---|
System.Object |
Depth
Declaration
public int Depth { get; set; }
Property Value
Type |
---|
System.Int32 |
DisplayMember
Declaration
public string DisplayMember { get; set; }
Property Value
Type |
---|
System.String |
DisplayRecordIndex
Gets or sets the display record index
Declaration
public int DisplayRecordIndex { get; set; }
Property Value
Type |
---|
System.Int32 |
ForeColor
Gets or sets the foreground color which used to display the text.
Declaration
public override Color ForeColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
FrameBorderColor
Gets or sets the Frame Border color.
Declaration
public Color FrameBorderColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
OuterFrameGradientEndColor
Gets or sets the gradient end color for the outer frame.
Declaration
public Color OuterFrameGradientEndColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
OuterFrameGradientStartColor
Gets or sets the gradient start color for the outer frame.
Declaration
public Color OuterFrameGradientStartColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
OverrideFontSize
Gets or sets the value to override control's font size.
Declaration
public bool OverrideFontSize { get; set; }
Property Value
Type |
---|
System.Boolean |
Remarks
Size mentioned in the Control's Font will be applied only when this is disabled, else the font size will be assigned based on control's size
RoundCornerRadius
Gets or sets the value for the rounded corner radius.
Declaration
public int RoundCornerRadius { get; set; }
Property Value
Type |
---|
System.Int32 |
SegmentSpacing
Gets or sets the value for spacing between each string being displayed in the Gauge.
Declaration
public float SegmentSpacing { get; set; }
Property Value
Type |
---|
System.Single |
ShowInvisibleSegments
Show or hide the disabled segments.
Declaration
public bool ShowInvisibleSegments { get; set; }
Property Value
Type |
---|
System.Boolean |
Text
Override text
Declaration
public override string Text { get; }
Property Value
Type |
---|
System.String |
ThemeBrush
Gets the ThemeBrush ColorTable for DigitalGauge control
Declaration
public BindingList<DigitalGaugeThemeBrush> ThemeBrush { get; }
Property Value
Type |
---|
System.ComponentModel.BindingList<DigitalGaugeThemeBrush> |
Value
Gets or sets the value to be displayed.
Declaration
public string Value { get; set; }
Property Value
Type |
---|
System.String |
VisualStyle
Specifies the visual style.
Declaration
public ThemeStyle VisualStyle { get; set; }
Property Value
Type |
---|
ThemeStyle |
Methods
CreateAccessibilityInstance()
Declaration
protected override AccessibleObject CreateAccessibilityInstance()
Returns
Type |
---|
System.Windows.Forms.AccessibleObject |
Dispose(Boolean)
Dispose function overrides
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
GetRoundPath(Rectangle, Int32)
Returns the rounded rectangle for control's region.
Declaration
public static GraphicsPath GetRoundPath(Rectangle r, int depth)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Rectangle | r | rectangle |
System.Int32 | depth | value to draw inner frame |
Returns
Type | Description |
---|---|
System.Drawing.Drawing2D.GraphicsPath | graphics path |
OnBindingContextChanged(EventArgs)
Overrides base.OnBindingContextChanged
Declaration
protected override void OnBindingContextChanged(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e |
OnPaint(PaintEventArgs)
Overrides the base.Paint
Declaration
protected override void OnPaint(PaintEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.PaintEventArgs | e | PaintEventArgs which contains the EventData |
OnPaintBackground(PaintEventArgs)
Overrides base.OnPaintBackground to paint the background region of the control
Declaration
protected override void OnPaintBackground(PaintEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.PaintEventArgs | e |
ResetBackgroundGradientEndColor()
Resets the BackgroundGradientEndColor property to it's default value.
Declaration
protected void ResetBackgroundGradientEndColor()
ResetBackgroundGradientStartColor()
Resets the BackgroundGradientStartColor property to it's default value.
Declaration
protected void ResetBackgroundGradientStartColor()
ResetCharacterCount()
Resets the
Declaration
protected void ResetCharacterCount()
ResetCharacterType()
Resets the
Declaration
protected void ResetCharacterType()
ResetDepth()
Resets the
Declaration
protected void ResetDepth()
ResetFrameBorderColor()
Resets the
Declaration
protected void ResetFrameBorderColor()
ResetOuterFrameGradientEndColor()
Resets the OuterFrameGradientEndColor property to it's default value.
Declaration
protected void ResetOuterFrameGradientEndColor()
ResetOuterFrameGradientStartColor()
Resets the OuterFrameGradientStartColor property to it's default value.
Declaration
protected void ResetOuterFrameGradientStartColor()
ResetOverrideFontSize()
Resets the
Declaration
protected void ResetOverrideFontSize()
ResetRoundCornerRadius()
Resets the
Declaration
protected void ResetRoundCornerRadius()
ResetSegmentSpacing()
Resets the
Declaration
protected void ResetSegmentSpacing()
ResetShowInvisibleSegments()
Resets the
Declaration
protected void ResetShowInvisibleSegments()
ResetValue()
Resets the Value property to it's default value.
Declaration
protected void ResetValue()
ResetVisualStyle()
Resets the VisualStyle property to it's default value.
Declaration
protected void ResetVisualStyle()
ShouldSerializeBackColor()
Indicates whether the current value of the BackColor property is to be serialized.
Declaration
protected bool ShouldSerializeBackColor()
Returns
Type |
---|
System.Boolean |
ShouldSerializeBackgroundGradientEndColor()
Indicates whether the current value of the BackgroundGradientEndColor property is to be serialized.
Declaration
protected bool ShouldSerializeBackgroundGradientEndColor()
Returns
Type |
---|
System.Boolean |
ShouldSerializeBackgroundGradientStartColor()
Indicates whether the current value of the BackgroundGradientStartColor property is to be serialized.
Declaration
protected bool ShouldSerializeBackgroundGradientStartColor()
Returns
Type |
---|
System.Boolean |
ShouldSerializeCharacterCount()
Indicates whether the current value of the CharacterCount property is to be serialized.
Declaration
protected bool ShouldSerializeCharacterCount()
Returns
Type |
---|
System.Boolean |
ShouldSerializeCharacterType()
Indicates whether the current value of the CharacterType property is to be serialized.
Declaration
protected bool ShouldSerializeCharacterType()
Returns
Type |
---|
System.Boolean |
ShouldSerializeDepth()
Indicates whether the current value of the Depth property is to be serialized.
Declaration
protected bool ShouldSerializeDepth()
Returns
Type |
---|
System.Boolean |
ShouldSerializeFrameBorderColor()
Indicates whether the current value of the FrameBorderColor property is to be serialized.
Declaration
protected bool ShouldSerializeFrameBorderColor()
Returns
Type |
---|
System.Boolean |
ShouldSerializeOuterFrameGradientEndColor()
Indicates whether the current value of the OuterFrameGradientEndColor property is to be serialized.
Declaration
protected bool ShouldSerializeOuterFrameGradientEndColor()
Returns
Type |
---|
System.Boolean |
ShouldSerializeOuterFrameGradientStartColor()
Indicates whether the current value of the OuterFrameGradientStartColor property is to be serialized.
Declaration
protected bool ShouldSerializeOuterFrameGradientStartColor()
Returns
Type |
---|
System.Boolean |
ShouldSerializeOverrideFontSize()
Indicates whether the current value of the OverrideFontSize property is to be serialized.
Declaration
protected bool ShouldSerializeOverrideFontSize()
Returns
Type |
---|
System.Boolean |
ShouldSerializeRoundCornerRadius()
Indicates whether the current value of the RoundCornerRadius property is to be serialized.
Declaration
protected bool ShouldSerializeRoundCornerRadius()
Returns
Type |
---|
System.Boolean |
ShouldSerializeSegmentSpacing()
Indicates whether the current value of the SegmentSpacing property is to be serialized.
Declaration
protected bool ShouldSerializeSegmentSpacing()
Returns
Type |
---|
System.Boolean |
ShouldSerializeShowInvisibleSegments()
Indicates whether the current value of the ShowInvisibleSegments property is to be serialized.
Declaration
protected bool ShouldSerializeShowInvisibleSegments()
Returns
Type |
---|
System.Boolean |
ShouldSerializeValue()
Indicates whether the current value of the Value property is to be serialized.
Declaration
protected bool ShouldSerializeValue()
Returns
Type |
---|
System.Boolean |
ShouldSerializeVisualStyle()
Indicates whether the current value of the VisualStyle property is to be serialized.
Declaration
protected bool ShouldSerializeVisualStyle()
Returns
Type |
---|
System.Boolean |
Explicit Interface Implementations
IVisualStyle.VisualTheme
Declaration
string IVisualStyle.VisualTheme { get; set; }
Returns
Type |
---|
System.String |