ComboBox.setSelectionEnd

Overview | Methods | This Package | All Packages

ComboBox.setSelectionEnd

Sets the end position of the text selection in the edit control of the combo box.

Syntax

public final void setSelectionEnd( int value )

Parameters

value

The zero-based index of the first character after the end of the text to select in the edit control of the combo box. For example, to select the third through fifth characters are selected in the edit control (with zero-based indexes 2 through 4), set this value to 5, and set the value parameter of the setSelectionStart method to 2. To place the cursor in the edit control without selecting text, specify the same value for both the getSelectionStart method and the getSelectionEnd method. For example, to place the cursor between the third and fourth characters, pass the value 3 to both methods. If the combo box has a static text control instead of an edit control, calling this method has no effect.

See Also   getSelectionEnd