Class TextStyle
TextStyle class.
Inheritance
System.Object
TextStyle
Namespace: Syncfusion.SfDiagram.XForms
Assembly: Syncfusion.SfDiagram.XForms.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 | Size. |
| Xamarin.Forms.Color | color | Color. |
| System.String | family | Family. |
| HorizontalAlignment | horizontalAlign | Horizontal Alignment. |
| VerticalAlignment | verticalAlign | Vertical Alignment. |
Properties
Color
Gets the color of the TextStyle.
Declaration
public Color Color { get; }
Property Value
| Type | Description |
|---|---|
| Xamarin.Forms.Color | The color of the TextStyle. |
Family
Gets the TextStyle family.
Declaration
public string Family { get; }
Property Value
| Type | Description |
|---|---|
| System.String | The TextStyle family. |
HorizontalAlignment
Gets the horizontal alignment.
Declaration
public HorizontalAlignment HorizontalAlignment { get; }
Property Value
| Type | Description |
|---|---|
| HorizontalAlignment | The horizontal alignment. |
Size
Gets the size of the TextStyle.
Declaration
public int Size { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | The size of the TextStyle. |
VerticalAlignment
Gets the vertical alignment.
Declaration
public VerticalAlignment VerticalAlignment { get; }
Property Value
| Type | Description |
|---|---|
| VerticalAlignment | The vertical alignment. |