Source::GetText Method (Int32, Int32, Int32, Int32)
Visual Studio 2015
Gets the text between the specified locations.
Assembly: Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)
Parameters
- startLine
-
Type:
System::Int32
The first line of text to obtain.
- startCol
-
Type:
System::Int32
The offset on the first line to the first character to obtain.
- endLine
-
Type:
System::Int32
The last line of text to obtain.
- endCol
-
Type:
System::Int32
The offset on the last line to the last character to obtain.
This method forwards the call to the GetLineText method on the IVsTextLines object passed to the Source class constructor. This method throws an exception if GetLineText returns an error.
Show: