ExpansionProvider::FormatSpan Method (IVsTextLines^, array<TextSpan>^)
Visual Studio 2015
Formats the specified text span.
Assembly: Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)
Parameters
- buffer
-
Type:
Microsoft.VisualStudio.TextManager.Interop::IVsTextLines^
The IVsTextLines buffer.
- ts
-
Type:
array<Microsoft.VisualStudio.TextManager.Interop::TextSpan>^
An array of TextSpan objects.
Return Value
Type: System::Int32F:Microsoft.VisualStudio.NativeMethods.S_OK if the method succeeded, otherwise F:Microsoft.VisualStudio.NativeMethods.E_NOTIMPL.
This method first checks that buffer is the same as the IVsTextLines in the Source, and throws an ArgumentException if they are not. If format selection is enabled, this method iterates through the array of TextSpan objects and formats them.
Show: