gui.getTextEditorSelectionRange

Returns position and length of a text selection.

Prototype

  1. nSelectionPosition, nSelectionLength = gui.getTextEditorSelectionRange ( hComponent )

Parameters

hComponent - valid GUI component handle


Return values

nSelectionPosition - starting position of the selection as seen from the beginning of the line, 1..n
nSelectionLength - length of the selection 1..n


Available since ShiVa 2.0