Source::GetDocumentSpan Method ()

 

Gets the span occupied by the entire source file.

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

public:
TextSpan GetDocumentSpan()

Return Value

Type: Microsoft.VisualStudio.TextManager.Interop::TextSpan

A TextSpan object that encompasses the entire source file.

This is typically called from the ReformatDocument method to select the entire document.

Return to top
Show: