Condividi tramite


Metodo IVsTextView.GetSelectionMode

restituisce la modalità di selezione corrente.

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

Sintassi

'Dichiarazione
Function GetSelectionMode As TextSelMode
TextSelMode GetSelectionMode()
TextSelMode GetSelectionMode()
abstract GetSelectionMode : unit -> TextSelMode
function GetSelectionMode() : TextSelMode

Valore restituito

Tipo: Microsoft.VisualStudio.TextManager.Interop.TextSelMode
Se il metodo ha esito positivo, restituisce S_OK.Se non riesce, restituisce un codice di errore.

Note

Firma COM

da textmgr.idl:

HRESULT IVsTextView::GetSelectionMode();

Utilizzare questo metodo per determinare se il flusso o la selezione della casella è la modalità di selezione corrente. Per ulteriori informazioni, vedere TextSelMode.

Sicurezza di .NET Framework

Vedere anche

Riferimenti

IVsTextView Interfaccia

Spazio dei nomi Microsoft.VisualStudio.TextManager.Interop