Condividi tramite


Metodo Source.GetDocumentSpan

Ottiene l'intervallo occupata dal file di origine.

Spazio dei nomi:  Microsoft.VisualStudio.Package
Assembly:   Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)

Sintassi

'Dichiarazione
Public Function GetDocumentSpan As TextSpan
public TextSpan GetDocumentSpan()

Valore restituito

Tipo: Microsoft.VisualStudio.TextManager.Interop.TextSpan
In TextSpan oggetto che includa l'intero file di origine.

Note

Questa operazione in genere viene chiamata da ReformatDocument metodo per selezionare l'intero documento.

Sicurezza di .NET Framework

Vedere anche

Riferimenti

Source Classe

Spazio dei nomi Microsoft.VisualStudio.Package