IEditorOperations.ReplaceText(Span, 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 text from the given span with the new text.
public:
bool ReplaceText(Microsoft::VisualStudio::Text::Span replaceSpan, System::String ^ text);
public:
bool ReplaceText(Microsoft::VisualStudio::Text::Span replaceSpan, Platform::String ^ text);
bool ReplaceText(Microsoft::VisualStudio::Text::Span replaceSpan, std::wstring const & text);
public bool ReplaceText (Microsoft.VisualStudio.Text.Span replaceSpan, string text);
abstract member ReplaceText : Microsoft.VisualStudio.Text.Span * string -> bool
Public Function ReplaceText (replaceSpan As Span, text As String) As Boolean
Parameters
- replaceSpan
- Span
The span of text to be replaced.
- text
- String
The new text.
Returns
true
if the edit succeeded, otherwise false
.