Search
Box.EnableStyledText Property
See Also
 



Gets or sets a value indicating whether styled text rendering is enabled.

 Syntax

VB6  Copy Code

Public Property Get EnableStyledText() As Boolean
Public Property Let EnableStyledText( _
    ByVal value As Boolean _
)

C++  Copy Code

public:
bool get_EnableStyledText ()
void put_EnableStyledText (
    bool value
)

 Property Value

A boolean value. Initialized with FlowChart.EnableStyledText.

 Remarks

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

 Example

The following example demonstrates how to set styled text to a box:

VB6  Copy Code

fcx.ActiveBox.TextStyle = tsFitPolyTop
fcx.ActiveBox.EnableStyledText = True
fcx.ActiveBox.Style = bsShape
fcx.ActiveBox.Text = "H<sub>2</sub>O"

 See Also