Gets or sets the alignment and line position of the text used as table caption.
Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming
C# Copy Code |
---|
public StringFormat CaptionFormat { get; set; } |
Visual Basic Copy Code |
---|
Public Property CaptionFormat As StringFormat |
An instance of the .NET StringFormat class.
Use this property to change the alignment of text or its position inside the caption area.
If there isn't enough space available to fit a whole line of text, NetDiagram wraps the text to a new line when it reaches the edge of the table. You can specify that the text should be wrapped only at word boundaries by setting the Trimming member of CaptionFormat 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 CaptionFormat. If automatic wrapping is disabled and there isn't enough space to fit the whole line, the text is clipped at the table boundaries.
NetDiagram Programmer's Guide | © 2023 MindFusion |