Class TextStyle
Initializes a new instance of the
Inheritance
System.Object
TextStyle
Namespace: Syncfusion.SfDiagram.Android
Assembly: Syncfusion.SfDiagram.Android.dll
Syntax
public class TextStyle : Object
Constructors
TextStyle(Int32, Color, String, HorizontalAlignment, VerticalAlignment)
Initializes a new instance of the TextStyle class.
Declaration
public TextStyle(int size, Color color, string family, HorizontalAlignment horizontalAlign, VerticalAlignment verticalAlign)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | size | the Size. |
Android.Graphics.Color | color | the Color. |
System.String | family | the Family. |
HorizontalAlignment | horizontalAlign | the Horizontal Alignment. |
VerticalAlignment | verticalAlign | the Vertical Alignment. |
Properties
Color
Gets the color of the text.
Declaration
public Color Color { get; }
Property Value
Type | Description |
---|---|
Android.Graphics.Color | The color of the text. |
Family
Gets the font family of the text.
Declaration
public string Family { get; }
Property Value
Type | Description |
---|---|
System.String | The font family of the text. |
HorizontalAlignment
Gets the horizontal alignment.
Declaration
public HorizontalAlignment HorizontalAlignment { get; }
Property Value
Type | Description |
---|---|
HorizontalAlignment | The horizontal alignment. |
Size
Gets the size of the text.
Declaration
public int Size { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The size of the text. |
VerticalAlignment
Gets the vertical alignment.
Declaration
public VerticalAlignment VerticalAlignment { get; }
Property Value
Type | Description |
---|---|
VerticalAlignment | The vertical alignment. |