Condividi tramite


Metodo IVsExpansionSession.GetEndSpan

Restituisce la posizione in cui il cursore di modifica deve essere inserito nel frammento di codice viene eseguito il commit nel buffer di origine.

Spazio dei nomi:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Sintassi

'Dichiarazione
Function GetEndSpan ( _
    <OutAttribute> pts As TextSpan() _
) As Integer
int GetEndSpan(
    TextSpan[] pts
)
int GetEndSpan(
    [OutAttribute] array<TextSpan>^ pts
)
abstract GetEndSpan : 
        pts:TextSpan[] byref -> int
function GetEndSpan(
    pts : TextSpan[]
) : int

Parametri

Valore restituito

Tipo: Int32
Se il metodo ha esito positivo, restituisce S_OK.Se non riesce, restituisce un codice di errore.

Note

Firma COM

da textmgr2.idl:

HRESULT GetEndSpan(
   [out] TextSpan *pts
);

In genere, un frammento di codice specifica la posizione di un marcatore nel file modello in cui il cursore di modifica deve passare quando il frammento di codice viene eseguito il commit nel buffer di origine. La posizione del cursore di modifica può anche essere sottoposta a override da una chiamata a SetEndSpan metodo.

Sicurezza di .NET Framework

Vedere anche

Riferimenti

IVsExpansionSession Interfaccia

Spazio dei nomi Microsoft.VisualStudio.TextManager.Interop