Name
Texteditor.SetUnderline -- toggle underline style of text block
Synopsis
moai.DoMethod(id, "SetUnderline", start, end, flag)
Function
This method toggles underline style on a text block that is defined by start and stop coordinates. If the flag argument is set to True, underline style will be added to the specified text block, otherwise underline style will be removed from the text block.

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
flag
boolean flag that indicates toggle state

Show TOC