IEditorOperations.ReplaceSelection(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Replaces the text selection with the new text.
public:
bool ReplaceSelection(System::String ^ text);
public:
bool ReplaceSelection(Platform::String ^ text);
bool ReplaceSelection(std::wstring const & text);
public bool ReplaceSelection (string text);
abstract member ReplaceSelection : string -> bool
Public Function ReplaceSelection (text As String) As Boolean
Parameters
- text
- String
The new text that replaces the old selection.
Returns
true
if the edit succeeded, otherwise false
.
Exceptions
text
is null.