TreeText::SetHtmlText

TreeText::SetHtmlText
void SetHtmlText(const char* putf8Str, UPInt lengthInBytes = UPInt(-1), Text::StyledText::HTMLImageTagInfoArray* pimgInfoArr = NULL);
void SetHtmlText(const wchar_t* pstr, UPInt lengthInChars = UPInt(-1), Text::StyledText::HTMLImageTagInfoArray* pimgInfoArr = NULL);
void SetHtmlText(const String& str, Text::StyledText::HTMLImageTagInfoArray* pimgInfoArr = NULL);
Description

SetHtmlText parses UTF-8, UCS-2 or String encoded HTML and initializes the text object by the parsed HTML text. If 'lengthInBytes' and 'lengthInChars' parameters are not specified then the UTF-8 and UCS-2 strings should be null-terminated.

Parameters
Parameters 
Description 
const char* putf8Str 
Pointer to the HTML encoded UTF-8 string. 
UPInt lengthInBytes = UPInt(-1) 
Number of bytes in the UTF-8 string. 
Text::StyledText::HTMLImageTagInfoArray* pimgInfoArr = NULL 
Pointer to the array holding image tag info. 
const wchar_t* pstr 
Pointer to the HTML encoded wide character string. 
UPInt lengthInChars = UPInt(-1) 
Number of characters in wide character string. 
const String& str 
HTML encoded string value.