Freigeben über


IEditorOperations.ReplaceSelection(String) Method

Definition

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.

Applies to