Gets or sets a value indicating whether styled text rendering is enabled.
VB6 Copy Code |
---|
Public Property Get EnableStyledText() As Boolean |
C++ Copy Code |
---|
public: |
A boolean value. Initialized with FlowChart.EnableStyledText.
Styled text can have various attributes applied to the characters it contains. The attributes are specified using HTML-like tags embedded in the raw text. Attributes can be combined just like in HTML. Styled text formatting is provided by the same renderer that implements "fit polygon" text layout styles. As a consequence, such text is rendered properly only for boxes of Style bsShape whose TextStyle is set to one of the following values: tsFitPolyTop, tsFitPolyCenter or tsFitPolyBottom.
The following table lists the currently supported style tags:
Tag | Description |
---|---|
<i> text </i> | italic text |
<b> text </b> | bold text |
<u> text </u> | underlined text |
<sub> text </sub> | subscript |
<sup> text </sup> | superscript |
The following example demonstrates how to set styled text to a box:
VB6 Copy Code |
---|
fcx.ActiveBox.TextStyle = tsFitPolyTop |