Class SevenSegmentHelper
Helper class for the SevenSegment Display
Inheritance
System.Object
SevenSegmentHelper
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.Windows.Forms.Gauge
Assembly: Syncfusion.Gauge.Windows.dll
Syntax
public class SevenSegmentHelper
Constructors
SevenSegmentHelper(Graphics, DigitalGauge)
Initiates a new instance for the SevenSegmentHelper class
Declaration
public SevenSegmentHelper(Graphics graphics, DigitalGauge gauge)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | graphics | graphics of the control |
DigitalGauge | gauge | owner control [Gauge] |
Methods
DrawDigits(String, Font, Brush, Brush, Single, Single)
Used to draw the input text.
Declaration
public void DrawDigits(string text, Font font, Brush brush, Brush brushLight, float x, float y)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | input text |
System.Drawing.Font | font | font |
System.Drawing.Brush | brush | brush to paint the active segments |
System.Drawing.Brush | brushLight | brush to paint the inactive segments |
System.Single | x | x location of the text to draw |
System.Single | y | y location of the text to draw |
GetStringSize(String, Font)
Measures and returns the size of the given text size.
Declaration
public SizeF GetStringSize(string text, Font font)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | string to measure |
System.Drawing.Font | font | specified font to measure the string |
Returns
Type | Description |
---|---|
System.Drawing.SizeF | SizeF |