Source.GetDocumentSpan 方法

定义

获取整个源文件占用的跨距。

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

返回

TextSpan

TextSpan包含整个源文件的对象。

注解

通常从方法中调用此 ReformatDocument 方法来选择整个文档。

适用于