Source::SetText Method (String^)
Visual Studio 2015
Replaces the source contents with the given text.
Assembly: Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)
Parameters
- newText
-
Type:
System::String^
The new text.
This method calls the GetLastLineIndex method to get the last line and then calls the ReplaceLines method to replace all lines with the new text.
This method can throw an exception if there was an error.
Show: