Freigeben über


VsTextViewClass.GetSelectionSpan-Methode

Gibt den Textabschnitt zurück, der mit einer Auswahl zugeordnet ist.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

'Declaration
Public Overridable Function GetSelectionSpan ( _
    <OutAttribute> pSpan As TextSpan() _
) As Integer
public virtual int GetSelectionSpan(
    TextSpan[] pSpan
)
public:
virtual int GetSelectionSpan(
    [OutAttribute] array<TextSpan>^ pSpan
)
abstract GetSelectionSpan : 
        pSpan:TextSpan[] byref -> int  
override GetSelectionSpan : 
        pSpan:TextSpan[] byref -> int
public function GetSelectionSpan(
    pSpan : TextSpan[]
) : int

Parameter

Rückgabewert

Typ: Int32

Implementiert

IVsTextView.GetSelectionSpan(array<TextSpan[])

.NET Framework-Sicherheit

Siehe auch

Referenz

VsTextViewClass Klasse

Microsoft.VisualStudio.TextManager.Interop-Namespace