Gets or sets the alignment of the text that is displayed inside the cell.
Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming
C# Copy Code |
---|
public StringFormat TextFormat { get; set; } |
Visual Basic Copy Code |
---|
Public Property TextFormat As StringFormat |
An instance of the .NET StringFormat class. The default alignment is StringAlignment.Center for lines and StringAlignment.Near for the written text.
Use this property to specify the alignment of the text that is contained in cells.
If there isn't enough space available to fit a whole line of text, MindFusion.Diagramming for WebForms wraps the text to a new line when it reaches the edge of the cell. 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, 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 cell boundaries.