EDITBOX.replaceSelection
[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]
The replaceSelection method replaces the current selection with the specified text.
elementID.replaceSelection(newValue)
Parameters
-
newValue
-
String containing the text to replace the selected text.
Return Value
This method does not return a value.
Remarks
If there is no text selected, the replacement text is inserted at the current location of the insertion point.
This method can only be called after the control becomes visible.
Requirements
Requirement | Value |
---|---|
Version |
Windows Media Player for Windows XP or later |