Condividi tramite


Metodo IVsFindTarget.GetCurrentSpan

Restituisce le coordinate o la posizione del cursore della selezione corrente.

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

Sintassi

'Dichiarazione
Function GetCurrentSpan ( _
    <OutAttribute> pts As TextSpan() _
) As Integer
int GetCurrentSpan(
    TextSpan[] pts
)
int GetCurrentSpan(
    [OutAttribute] array<TextSpan>^ pts
)
abstract GetCurrentSpan : 
        pts:TextSpan[] byref -> int
function GetCurrentSpan(
    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 textmgr.idl:

HRESULT IVsFindTarget::GetCurrentSpan(
   [out, retval] TextSpan * pts
);

Restituire la posizione corrente del cursore o le posizioni iniziale e finale della selezione evidenziata. Inserire le informazioni sul percorso in un oggetto TextSpan struttura. Per la posizione del cursore, le posizioni iniziale e finale devono corrispondere.

Sicurezza di .NET Framework

Vedere anche

Riferimenti

IVsFindTarget Interfaccia

Spazio dei nomi Microsoft.VisualStudio.TextManager.Interop