Class DiagramTextStyle
Inheritance
Namespace: Syncfusion.EJ2.Diagrams
Assembly: Syncfusion.EJ2.dll
Syntax
public class DiagramTextStyle : EJTagHelper
Constructors
DiagramTextStyle()
Declaration
public DiagramTextStyle()
Properties
Bold
Enables/disables the bold style of text
Declaration
public bool Bold { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
Color
Sets the font color of a text
Declaration
public string Color { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "black" |
ContentTemplate
To get or set value for ContentTemplate.
Declaration
public MvcTemplate<object> ContentTemplate { get; set; }
Property Value
Type |
---|
Syncfusion.EJ2.MvcTemplate<System.Object> |
Fill
Sets the fill color of a shape/path
Declaration
public string Fill { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "transparent" |
FontFamily
Sets the font type of a text
Declaration
public string FontFamily { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "Arial" |
FontSize
Defines the font size of a text
Declaration
public double FontSize { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 12 |
Gradient
Defines the gradient of a shape/path
Declaration
public object Gradient { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
Italic
Enables/disables the italic style of text
Declaration
public bool Italic { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
Opacity
Sets the opacity of a shape/path
Declaration
public double Opacity { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 1 |
StrokeColor
Sets the stroke color of a shape/path
Declaration
public string StrokeColor { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "black" |
StrokeDashArray
Defines the pattern of dashes and spaces to stroke the path/shape
Declaration
public string StrokeDashArray { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
StrokeWidth
Defines the stroke width of the path/shape
Declaration
public double StrokeWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 1 |
TextAlign
Defines how the text should be aligned within its bounds Left - Aligns the text at the left of the text bounds Right - Aligns the text at the right of the text bounds Center - Aligns the text at the center of the text bounds Justify - Aligns the text in a justified manner
Declaration
public TextAlign TextAlign { get; set; }
Property Value
Type | Description |
---|---|
TextAlign | The default value is TextAlign.Center |
TextDecoration
Defines how the text should be decorated. For example, with underline/over line Overline - Decorates the text with a line above the text Underline - Decorates the text with an underline LineThrough - Decorates the text by striking it with a line None - Text will not have any specific decoration
Declaration
public TextDecoration TextDecoration { get; set; }
Property Value
Type | Description |
---|---|
TextDecoration | The default value is TextDecoration.None |
TextOverflow
Defines how to handle the text when it exceeds the given size. Wrap - Wraps the text to next line, when it exceeds its bounds Ellipsis - It truncates the overflown text and represents the clipping with an ellipsis Clip - It clips the overflow text
Declaration
public TextOverflow TextOverflow { get; set; }
Property Value
Type | Description |
---|---|
TextOverflow | The default value is TextOverflow.Wrap |
TextWrapping
Defines how the text should be wrapped, when the text size exceeds some specific bounds WrapWithOverflow - Wraps the text so that no word is broken Wrap - Wraps the text and breaks the word, if necessary NoWrap - Text will no be wrapped
Declaration
public TextWrap TextWrapping { get; set; }
Property Value
Type | Description |
---|---|
TextWrap | The default value is TextWrap.WrapWithOverflow |
WhiteSpace
Defines how the white space and new line characters have to be handled PreserveAll - Preserves all empty spaces and empty lines CollapseSpace - Collapses the consequent spaces into one CollapseAll - Collapses all consequent empty spaces and empty lines
Declaration
public WhiteSpace WhiteSpace { get; set; }
Property Value
Type | Description |
---|---|
WhiteSpace | The default value is WhiteSpace.CollapseSpace |