Source.GetDocumentSpan Method   
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the span occupied by the entire source file.
public:
 Microsoft::VisualStudio::TextManager::Interop::TextSpan GetDocumentSpan();public:
 Microsoft::VisualStudio::TextManager::Interop::TextSpan GetDocumentSpan();Microsoft::VisualStudio::TextManager::Interop::TextSpan GetDocumentSpan();public Microsoft.VisualStudio.TextManager.Interop.TextSpan GetDocumentSpan();member this.GetDocumentSpan : unit -> Microsoft.VisualStudio.TextManager.Interop.TextSpanPublic Function GetDocumentSpan () As TextSpanReturns
A TextSpan object that encompasses the entire source file.
Remarks
This is typically called from the ReformatDocument method to select the entire document.