Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface IGraphicsModule4

interface IGraphicsModule4
Extends IGraphicsModule3 This interface extends IGraphicsModule3 to provide additional control over attributed text creation from markup strings.

Methods

makeAttributedTextFromMarkup()

IAttributedText* makeAttributedTextFromMarkup(string attributedText)
Constructs an 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 Style Attributes (only for <span> tag):
  • color Hex color value (e.g., #FF0000)
  • font-size Font size with optional unit
  • white-space Whitespace handling
  • lang Language attribute
  • text-decoration Text decoration type
  • text-decoration-style Text decoration style
Special Entities:
  • &amp; renders as &
  • < renders as <
  • > renders as >
Example: ("<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.
Last modified on October 29, 2026