ExpansionProvider.FormatSpan Method (IVsTextLines, TextSpan[])

 

Formats the specified text span.

Namespace:   Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)

public virtual int FormatSpan(
	IVsTextLines buffer,
	TextSpan[] ts
)

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.

Return to top
Show: