Name
Texteditor.GetSelection -- get text selection
Synopsis
start, end = moai.DoMethod(id, "GetSelection")
Function
This method returns the start and stop positions of the currently selected text. The first character of the text is at position 0. If there is no marked area, -1 is returned for both values.

Inputs
id
id of the text editor object
Results
start
start offset of marked text
end
end offset of marked text

Show TOC