Class TextWrap
Specifies how to control the overflow of text in the node boundaries. The wrapping property defines how to wrap the text.
Inheritance
System.Object
TextWrap
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
public sealed class TextWrap : 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>()
{
new ShapeAnnotation
{
Content = "Node",
ID = "Annotation",
Style= new TextStyle()
{
TextWrapping = TextWrap.NoWrap,
}
}
},
};
Fields
NoWrap
The text will not be wrapped. If a lengthy text exists, the boundary will not be a limit.
Declaration
public const TextWrap NoWrap
Field Value
Type |
---|
TextWrap |
Wrap
The text will be wrapped within the boundary.
Declaration
public const TextWrap Wrap
Field Value
Type |
---|
TextWrap |
WrapWithOverflow
Text-wrapping occurs when the text overflows beyond the available node width. However, the text may overflow beyond the node width in case of a very long word.
Declaration
public const TextWrap WrapWithOverflow
Field Value
Type |
---|
TextWrap |