Source::CommentLines Method (TextSpan, String^)
Visual Studio 2015
Comments out a span of source using line comments.
Assembly: Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)
Parameters
- span
-
Type:
Microsoft.VisualStudio.TextManager.Interop::TextSpan
A TextSpan object describing the span to put into line comments.
- lineComment
-
Type:
System::String^
The string that specifies the line comment character or characters.
Return Value
Type: Microsoft.VisualStudio.TextManager.Interop::TextSpanReturns a TextSpan object encompassing the entire commented block, including the added line comment start string.
Prefaces all lines in span with the line comment string.
The base method skips leading whitespace on each line before inserting the line comment string. This method is typically called from the CommentSpan method.
Show: