IVsTextView.GetSelectionMode, méthode

Retourne le mode de sélection actuel.

Espace de noms :  Microsoft.VisualStudio.TextManager.Interop
Assembly :  Microsoft.VisualStudio.TextManager.Interop (dans Microsoft.VisualStudio.TextManager.Interop.dll)

Syntaxe

'Déclaration
Function GetSelectionMode As TextSelMode
TextSelMode GetSelectionMode()
TextSelMode GetSelectionMode()
abstract GetSelectionMode : unit -> TextSelMode
function GetSelectionMode() : TextSelMode

Valeur de retour

Type : Microsoft.VisualStudio.TextManager.Interop.TextSelMode
Si la méthode réussit, elle retourne S_OK.En cas d'échec, un code d'erreur est retourné.

Notes

Signature de COM

De textmgr.idl :

HRESULT IVsTextView::GetSelectionMode();

Utilisez cette méthode pour déterminer si le flux de données ou la sélection de zone est le mode de sélection actuel. Pour plus d'informations, consultez TextSelMode.

Sécurité .NET Framework

Voir aussi

Référence

IVsTextView Interface

Microsoft.VisualStudio.TextManager.Interop, espace de noms