TreeText::SetColor

TreeText::SetColor
void SetColor(Color c, UPInt startPos = 0, UPInt endPos = UPInt(-1));
Description

SetColor sets color (R, G, B, A) to whole text or to a part of text in the positions indicated by optional parameters 'startPos' and 'endPos'.

Parameters
Parameters 
Description 
Color c 
The color to be applied to the text. 
UPInt startPos = 0 
The starting position in the text from where text color is changed. 
UPInt endPos = UPInt(-1) 
The ending position in the text till which the text color is changed.