Class TextOverflow
Specifies a value that indicates whether to render ellipses (...) to indicate text overflow.
Inheritance
System.Object
TextOverflow
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
public sealed class TextOverflow : 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()
{
TextOverflow = TextOverflow.Wrap,
}
}
},
};
Fields
Clip
The text is restricted to the node/connector boundary and the text will not be overflown.
Declaration
public const TextOverflow Clip
Field Value
Type |
---|
TextOverflow |
Ellipsis
Ellipsis hides the text if the text size exceeds the boundary.
Declaration
public const TextOverflow Ellipsis
Field Value
Type |
---|
TextOverflow |
Wrap
Wraps the text to the next line, when it exceeds its bounds.
Declaration
public const TextOverflow Wrap
Field Value
Type |
---|
TextOverflow |