Source.GetDocumentSpan Method

Definition

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.TextSpan
Public Function GetDocumentSpan () As TextSpan

Returns

A TextSpan object that encompasses the entire source file.

Remarks

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

Applies to