Name
Texteditor.SetColor -- change color of text block
Synopsis
moai.DoMethod(id, "SetColor", start, end, color)
Function
This method changes the color of a text block that is defined by start and end coordinates. The color has to be passed as a 24-bit RGB value.

To change the color that should be used for newly inserted text, use the Texteditor.Color attribute instead.

Note that this feature requires Texteditor.Styled to be set to True.

Inputs
id
id of the text editor object
start
start position (starting from 0)
end
end position
color
desired color for text

Show TOC