Class TextDecoration
The TextDecoration property defines the decoration for a text in the text block.
Inheritance
System.Object
TextDecoration
Namespace: Syncfusion.Blazor.Diagrams
Assembly: Syncfusion.Blazor.dll
Syntax
public sealed class TextDecoration : Enum
Remarks
By default, the TextDecoration is set to None. |
Examples
<SfDiagram Height="600px" Nodes="@NodeCollection">
</SfDiagram>
@code
{
public ObservableCollection<DiagramNode> NodeCollection { get; set; }
protected override void OnInitialized()
{
NodeCollection = new ObservableCollection<DiagramNode>();
DiagramNode Node = new DiagramNode()
{
Width = 100,
Height = 100,
OffsetX = 100,
OffsetY = 100,
Annotations = new ObservableCollection<DiagramNodeAnnotation>() {
new DiagramNodeAnnotation() {Content = "Annotation Text",Style = new AnnotationStyle() {
//Set the TextDecoration for the annotation
TextDecoration=TextDecoration.Overline } }
},
};
NodeCollection.Add(Node);
}
}
}
Fields
LineThrough
LineThrough property draws a horizontal line in the center of the text of a node or a connector.
Declaration
public const TextDecoration LineThrough
Field Value
Type | Description |
---|---|
TextDecoration |
None
The None property represents the default text.
Declaration
public const TextDecoration None
Field Value
Type | Description |
---|---|
TextDecoration |
Overline
The Overline property draws a horizontal line above the text.
Declaration
public const TextDecoration Overline
Field Value
Type | Description |
---|---|
TextDecoration |
Underline
This property draws a horizontal line under the text in the text block.
Declaration
public const TextDecoration Underline
Field Value
Type | Description |
---|---|
TextDecoration |
value__
Declaration
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |