Gets or sets a value indicating whether styled text rendering is enabled.
Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming
C# Copy Code |
---|
public bool EnableStyledText { get; set; } |
Visual Basic Copy Code |
---|
Public Property EnableStyledText As Boolean |
true to parse the node's text in order to find formatting tags; otherwise, false. Initialized with the value of EnableStyledText.
Styled text allows applying various attributes to the characters it contains. Attributes are specified using HTML-like formatting tags embedded in the raw text. Formatting tags are listed and described in the Text Attributes and Formatting section of this help file.
Styled text can be enabled only if PolygonalTextLayout is set to true. If enabled, Text is parsed and analyzed each time it is changed. Parsing determines what formatting tags are used and adds the corresponding attribute records to MindFusion.Diagramming for WebForms's internal representation of styled text. If the property value is false, the text is not processed in any way and is displayed without formatting.
The following sample code demonstrates how to use styled text:
C# Copy Code |
---|
shapeNode.PolygonalTextLayout = true; |
Visual Basic Copy Code |
---|
shapeNode.PolygonalTextLayout = True |