The FormattedTextArea class accepts 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.
Enclosed text is bold.
Attribute | Values | Description |
---|---|---|
Color | Web Color Hex String. | Color of the text. |
Face | A 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 FormattedTextArea's FontFaces property. |
Size | An 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). |
PointSize | A decimal value. | The size in points of the text. |
Enclosed text is italic.
Attribute | Values | Description |
---|---|---|
Leading | A decimal value. | The leading of the line. |
LeadingType | auto | atLeast | exactly | Specifies how leading is calculated. |
Attribute | Values | Description |
---|---|---|
Align | left | right | center | justify | Alignment of the paragraph's text. |
AllowOrphanLines | true | false | Specifies if one orphaned line should be allowed to be left on a page, or if it should be grouped with at least one other line for text continuation. |
Indent | A decimal value. | The first line indentation of the paragraph in points. |
LeftIndent | A decimal value. | The left indentation of the paragraph in points. |
PreserveWhiteSpace | true | false | Specifies if white space should be preserved. |
RightIndent | A decimal value. | The right indentation of the paragraph in points. |
SpacingAfter | A decimal value. | The spacing after the paragraph in points. |
SpacingBefore | A decimal value. | The spacing before the paragraph in points. |
Attribute | Values | Description |
---|---|---|
Displacement | A decimal value. | The positive value will move the text downwards. |
Attribute | Values | Description |
---|---|---|
Displacement | A decimal value. | The positive value will move the text upwards. |
Enclosed text is underlined.