Share via


ITextSelection.Select, méthode (VirtualSnapshotPoint, VirtualSnapshotPoint)

Sélectionne le texte entre les deux objets VirtualSnapshotPoint.

Espace de noms :  Microsoft.VisualStudio.Text.Editor
Assembly :  Microsoft.VisualStudio.Text.UI (dans Microsoft.VisualStudio.Text.UI.dll)

Syntaxe

'Déclaration
Sub Select ( _
    anchorPoint As VirtualSnapshotPoint, _
    activePoint As VirtualSnapshotPoint _
)
void Select(
    VirtualSnapshotPoint anchorPoint,
    VirtualSnapshotPoint activePoint
)
void Select(
    VirtualSnapshotPoint anchorPoint, 
    VirtualSnapshotPoint activePoint
)
abstract Select : 
        anchorPoint:VirtualSnapshotPoint * 
        activePoint:VirtualSnapshotPoint -> unit
function Select(
    anchorPoint : VirtualSnapshotPoint, 
    activePoint : VirtualSnapshotPoint
)

Paramètres

Notes

Une sélection inverse est créée si le point actif précède le point d'ancrage.

Le point actif correspond normalement à la fin de la sélection qui contient l'emplacement du signe insertion. Si la sélection est inversée, alors le point actif précède le point d'ancrage.

Sécurité .NET Framework

Voir aussi

Référence

ITextSelection Interface

Select, surcharge

Microsoft.VisualStudio.Text.Editor, espace de noms