Class TextDecoration
Represents the decoration of a text in the text block.
Inheritance
System.Object
TextDecoration
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
public sealed class TextDecoration : Enum
Examples
Node node = new Node()
{
// Position of the node
OffsetX = 250,
OffsetY = 250,
// Size of the node
Width = 100,
Height = 100,
Style = new ShapeStyle() { Fill = "#6495ED", StrokeColor = "white" },
// Initialize annotation collection
Annotations = new DiagramObjectCollection<ShapeAnnotation>()
{
// Add text as hyperlink.
new ShapeAnnotation { Style= new TextStyle(){TextDecoration = TextDecoration.None, } }
},
};
Fields
LineThrough
Draws a horizontal line through the text of a node or a connector.
Declaration
public const TextDecoration LineThrough
Field Value
Type |
---|
TextDecoration |
None
Represents the default appearance of a text.
Declaration
public const TextDecoration None
Field Value
Type |
---|
TextDecoration |
Overline
Draws a horizontal line above the text.
Declaration
public const TextDecoration Overline
Field Value
Type |
---|
TextDecoration |
Underline
Draws a horizontal line under the text.
Declaration
public const TextDecoration Underline
Field Value
Type |
---|
TextDecoration |