Skip to main content

Formatted Text Area Formatting

Version: 7.0

Formatted Text Area Formatting

The FormattedTextArea class was designed to allow formatting within a paragraph of text using common and familiar HTML-style tagging. The FormattedTextArea is not designed to support full HTML tags but it will accept the following HTML tags and attributes. Some of the attributes are in addition to the attribute found in HTML and are used for advanced paragraph and line properties. Please note that white space can be treated literally or ignored (standard behavior for HTML).

These tags map directly into the FormattedTextAreaStyle class. This class is used internally to manage the state of the Formatted Text Area. The style property of the Formatted Text Area represents the initial state of the text.

<B ... - Bold Tag​

Enclosed text is bold.

<Font ... - Font Tag​

AttributeValuesDescription
ColorWeb Color Hex String.Color of the text.
FaceA string value.The font family to use for the text. The 5 built-in font families ("Times" | "Helvetica" | "Courier" | "Symbol" | "ZapfDingbats") can be specified or additional ones can be added through the HtmlTextArea's FontFaces property.
SizeAn integer value.Specifies the HTML font size for the text. This is mapped to a point size internally (0 = 6 points, 1 = 8 points, 2 = 10 points, 3 = 12 points, 4 = 14 points, 5 = 18 points, 6 = 24 points, 7 = 36 points).
PointSizeA decimal value.The size in points of the text.

<I ... - Italics Tag​

Enclosed text is italic.

<Line ... - Line Tag​

AttributeValuesDescription
LeadingA decimal value.The leading of the line.
LeadingTypeauto | atLeast | exactlySpecifies how leading is calculated.

<P ... - Paragraph Tag​

AttributeValuesDescription
Alignleft | right | center | justifyAlignment of the paragraph's text.
AllowOrphanLinestrue | falseSpecifies if one orphaned line on a page has to be carried to the next page by itself or it will be carried along with the previous line to make it two lines on the next page.
IndentA decimal value.The first line indentation of the paragraph in points.
LeftIndentA decimal value.The left indentation of the paragraph in points.
PreserveWhiteSpacetrue | falseSpecifies if white space should be preserved.
RightIndentA decimal value.The right indentation of the paragraph in points.
SpacingAfterA decimal value.The spacing after the paragraph in points.
SpacingBeforeA decimal value.The spacing before the paragraph in points.

<SUB ... - Subscript Tag​

AttributeValuesDescription
DisplacementA decimal value.The positive value will move the text downwards.

<SUP ... - Superscript Tag​

AttributeValuesDescription
DisplacementA decimal value.The positive value will move the text upwards.

<U ... - Underline Tag​

Enclosed text is underlined.

<BR ... - Break Tag​

Inserts a single line break.