Class SevenSegmentHelper
Represents the seven segment helper
Inheritance
System.Object
SevenSegmentHelper
Namespace: Com.Syncfusion.Gauges.SfDigitalGauge
Assembly: Syncfusion.SfGauge.Android.dll
Syntax
public class SevenSegmentHelper : View
Constructors
SevenSegmentHelper(Context)
Initializes a new instance of the SevenSegmentHelper class .
Declaration
public SevenSegmentHelper(Context context)
Parameters
Type | Name | Description |
---|---|---|
Android.Content.Context | context | to get context |
SevenSegmentHelper(Context, IAttributeSet)
Initializes a new instance of the SevenSegmentHelper class .
Declaration
public SevenSegmentHelper(Context context, IAttributeSet attrs)
Parameters
Type | Name | Description |
---|---|---|
Android.Content.Context | context | to get context |
Android.Util.IAttributeSet | attrs | to get attributes |
Properties
GaugeValue
Gets or sets the value for gauge seven segment
Declaration
public string GaugeValue { get; set; }
Property Value
Type |
---|
System.String |
Methods
DrawDigits(String, Single, Single)
Method used to draw digits
Declaration
public void DrawDigits(string text, float x, float y)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | to get text |
System.Single | x | to get x value |
System.Single | y | to get y value |
DrawText(Char, Single, Single)
Method used to draw the text
Declaration
public float DrawText(char text, float x, float y)
Parameters
Type | Name | Description |
---|---|---|
System.Char | text | to get text |
System.Single | x | to get x value |
System.Single | y | to get y value |
Returns
Type | Description |
---|---|
System.Single | returns the x value |
GetSegmentTextData()
To get segment text data
Declaration
public static byte[][] GetSegmentTextData()
Returns
Type | Description |
---|---|
System.Byte[][] | returns the segment text data |
OnDraw(Canvas)
To draw seven segment
Declaration
protected override void OnDraw(Canvas canvas)
Parameters
Type | Name | Description |
---|---|---|
Android.Graphics.Canvas | canvas | to get canvas |
SetSegmentTextData(Byte[][])
Method used to set segment text data to segment helper segment text data
Declaration
public static void SetSegmentTextData(byte[][] segmentTextData)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[][] | segmentTextData | to get segment text data |