Edit.getSelectionEnd

Overview | Methods | This Package | All Packages

Edit.getSelectionEnd

Retrieves the zero-based index of the first character after the end of the current text selection in the edit control.

Syntax

public final int getSelectionEnd()

Return Value

Returns the zero-based index of the first character after the end of the current text selection in the edit control. For example, if the third through fifth characters are selected in the edit control (with zero-based indexes 2 through 4), the getSelectionEnd method returns 5. If the cursor is in the edit control but no text is selected, both the getSelectionStart method and the getSelectionEnd method return the same value. For example, if the cursor is between the third and fourth characters, both methods return 3. 

See Also   setSelectionEnd