ITextSelection.Select Method (VirtualSnapshotPoint, VirtualSnapshotPoint)
Selects the text between the two VirtualSnapshotPoint objects.
Namespace: Microsoft.VisualStudio.Text.Editor
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Syntax
'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
)
Parameters
- anchorPoint
Type: Microsoft.VisualStudio.Text.VirtualSnapshotPoint
The anchor point of the selection.
- activePoint
Type: Microsoft.VisualStudio.Text.VirtualSnapshotPoint
The active point of the selection.
Remarks
A reverse selection is created if the active point comes before the anchor point.
The active point normally corresponds to the end of the selection that contains the caret position. If the selection is reversed, then the active point comes before the anchor point.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.