DrawText::SetText

DrawText::SetText
virtual void SetText(const char* putf8Str, UPInt lengthInBytes = UPInt(-1)) = 0;
virtual void SetText(const wchar_t* pstr, UPInt lengthInChars = UPInt(-1)) = 0;
virtual void SetText(const String& str) = 0;
Description

SetText sets the UTF-8, UCS-2, or String text value to the text object. If the optional parameters 'lengthInBytes' and 'lengthInChars' are not specified, then the UTF-8 and UCS -2 strings should be null-terminated.

Parameters
Parameters 
Description 
const char* putf8Str 
Pointer to UTF-8 string. 
UPInt lengthInBytes = UPInt(-1) 
Number of bytes in the UTF-8 string. 
const wchar_t* pstr 
Pointer to Unicode/UCS-2 string. 
UPInt lengthInChars = UPInt(-1) 
Number of characters in the UCS-2 string. 
const String& str 
Text value to set to the text object.