Interface IGraphicsModule4
interface IGraphicsModule4
Extends IGraphicsModule3
This interface extends IGraphicsModule3 to provide additional control over attributed
text creation from markup strings.
Methods
makeAttributedTextFromMarkup()
Constructs anIAttributedText*makeAttributedTextFromMarkup(stringattributedText)
IAttributedText object from a markup string, applying corresponding spans for
supported tags and ignoring unknown tags.
Supported Tags:
<b>...</b>Bold/Strong text<i>...</i>Italic text<u>...</u>Underlined text<strike>...</strike>Strikethrough text<sup>...</sup>Superscript<sub>...</sub>Subscript<nobr>...</nobr>No-break (prevents line wrapping)<br>or<br/>Line break<span>...</span>Generic span with style attributes
<span> tag):
colorHex color value (e.g., #FF0000)font-sizeFont size with optional unitwhite-spaceWhitespace handlinglangLanguage attributetext-decorationText decoration typetext-decoration-styleText decoration style
&renders as&<renders as<>renders as>
("<b>Bold</b> and <i>italic</i><br><span style=\"color:#FF0000;\">Red</span>")
Parameters
attributedText
string — Required
The input string containing markup text. If empty,
an empty IAttributedText is returned.
Returns
IAttributedText*
An IAttributedText object with the parsed text and any generated style spans.
The underlying text (i.e., the text returned by IAttributedText::getText) will be
free of markup tags and contains only the visible content.

