Name
Texteditor.SetBold -- toggle bold style of text block
Synopsis
moai.DoMethod(id, "SetBold", start, end, flag)
Function
This method toggles bold style on a text block that is defined by start and end coordinates. If the flag argument is set to True, bold style will be added to the specified text block, otherwise bold 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