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
anchorPoint
Type : Microsoft.VisualStudio.Text.VirtualSnapshotPointPoint d'ancrage de la sélection.
activePoint
Type : Microsoft.VisualStudio.Text.VirtualSnapshotPointPoint actif de la sélection.
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
- Confiance totale accordée à l'appelant immédiat. Ce membre ne peut pas être utilisé par du code d'un niveau de confiance partiel. Pour plus d'informations, voir Utilisation de bibliothèques à partir de code d'un niveau de confiance partiel.