Gets or sets the alignment of the text that is displayed inside shape nodes.
Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming
C# Copy Code |
---|
public StringFormat TextFormat { get; set; } |
Visual Basic Copy Code |
---|
Public Property TextFormat As StringFormat |
An instance of the StringFormat class. Initialized with the value of TextFormat.
Use this property to specify the wrapping mode and alignment of the text that is contained in nodes.
If there isn't enough space available to fit a whole line of text, MindFusion.Diagramming wraps the text to a new line when it reaches the edge of the node. You can specify that the text should be wrapped only at word boundaries by setting the Trimming member of TextFormat to StringTrimming.Word. The default is to split words into multiple parts if there is not enough space to fit a whole word.
If you prefer to use your own line-breaks, you can disable the automatic text wrapping by enabling the NoWrap flag in the FormatFlags member of TextFormat. If automatic wrapping is disabled and there isn't enough space to fit the whole line, the text is clipped at the node boundaries.
MindFusion.Diagramming Developer's Guide | © 2024 MindFusion |