Class FourteenSegmentHelper
Represents fourteen segment in a digital gauge
Inheritance
System.Object
FourteenSegmentHelper
Namespace: Com.Syncfusion.Gauges.SfDigitalGauge
Assembly: Syncfusion.SfGauge.Android.dll
Syntax
public class FourteenSegmentHelper : View
Constructors
FourteenSegmentHelper(Context)
Initializes a new instance of the FourteenSegmentHelper class.
Declaration
public FourteenSegmentHelper(Context context)
Parameters
Type | Name | Description |
---|---|---|
Android.Content.Context | context | to get context |
FourteenSegmentHelper(Context, IAttributeSet)
Initializes a new instance of the FourteenSegmentHelper class.
Declaration
public FourteenSegmentHelper(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 a GaugeValue
Declaration
public string GaugeValue { get; set; }
Property Value
Type |
---|
System.String |
Methods
DrawDigits(String, Single, Single)
Method used to draw the 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 the x value |
System.Single | y | to get the 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 |
OnDraw(Canvas)
Method used to draw fourteen segment
Declaration
protected override void OnDraw(Canvas canvas)
Parameters
Type | Name | Description |
---|---|---|
Android.Graphics.Canvas | canvas | to get canvas |
SetSegmentTextData()
Method used to set segment text data
Declaration
public static byte[][] SetSegmentTextData()
Returns
Type | Description |
---|---|
System.Byte[][] | returns the segment text data |
SetSegmentTextData(Byte[][])
Method used to set segment text data to fourteen segment helper.
Declaration
public static void SetSegmentTextData(byte[][] segmentTextData)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[][] | segmentTextData | to get segment text data |