Class DiagramTextStyle
Inheritance
System.Object
DiagramTextStyle
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 |
|
Color
Sets the font color of a text
Declaration
public string Color { get; set; }
Property Value
Type |
Description |
System.String |
|
ContentTemplate
To get or set value for ContentTemplate.
Declaration
public MvcTemplate<object> ContentTemplate { get; set; }
Property Value
Fill
Sets the fill color of a shape/path
Declaration
public string Fill { get; set; }
Property Value
Type |
Description |
System.String |
|
FontFamily
Sets the font type of a text
Declaration
public string FontFamily { get; set; }
Property Value
Type |
Description |
System.String |
|
FontSize
Defines the font size of a text
Declaration
public double FontSize { get; set; }
Property Value
Type |
Description |
System.Double |
|
Gradient
Defines the gradient of a shape/path
Declaration
public object Gradient { get; set; }
Property Value
Type |
Description |
System.Object |
|
IsComplex
Declaration
protected override bool IsComplex { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Italic
Enables/disables the italic style of text
Declaration
public bool Italic { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Opacity
Sets the opacity of a shape/path
Declaration
public double Opacity { get; set; }
Property Value
Type |
Description |
System.Double |
|
ParentPropertyName
Declaration
protected override string ParentPropertyName { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
StrokeColor
Sets the stroke color of a shape/path
Declaration
public string StrokeColor { get; set; }
Property Value
Type |
Description |
System.String |
|
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 |
|
StrokeWidth
Defines the stroke width of the path/shape
Declaration
public double StrokeWidth { get; set; }
Property Value
Type |
Description |
System.Double |
|
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
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
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
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
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