EditableT.getSelectionBounds

Retrieves the selection bound of the editable. start_pos will be filled with the start of the selection and end_pos with end. If no text was selected both will be identical and FALSE will be returned. Note that positions are specified in characters, not bytes.

template EditableT(TStruct)
int
getSelectionBounds
(
out int startPos
,
out int endPos
)

Parameters

startPos int

location to store the starting position, or NULL. out[allow-none]

endPos int

location to store the end position, or NULL. out[allow-none]

Return Value

Type: int

TRUE if an area is selected, FALSE otherwise

Meta