Share via


Windows Media Player 11 SDK EDITBOX.setSelection 

Windows Media Player SDK banner art

Previous Next

EDITBOX.setSelection

The setSelection method selects the text in the edit box control from the specified start index to the specified end index.

Syntax

  

Parameters

  start

Number (long) containing the character index of the starting position of the selected text.

  end

Number (long) containing the character index of the ending position of the selected text.

Return Values

This method does not return a value.

Remarks

If the start is 0 and the end is –1, all of the text in the edit box control is selected. If the start is –1, any current selection is deselected.

This method can only be called after the control becomes visible.

Requirements

Windows Media Player for Windows XP or later.

See Also

Previous Next