ASP.NET Pack Programmer's Guide
ShapeNode.TextFormat Property
See Also
 





Gets or sets the alignment of the text that is displayed inside shape nodes.

Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming

 Syntax

C#  Copy Code

public StringFormat TextFormat { get; set; }

Visual Basic  Copy Code

Public Property TextFormat As StringFormat

 Property Value

An instance of the .NET StringFormat class. Initialized with the value of TextFormat.

 Remarks

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 for WebForms 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.

 See Also

ShapeNode Members
ShapeNode Class
MindFusion.Diagramming Namespace
Text Property
TextColor Property
Diagram.TextFormat Property