IEditorOperations.SelectAndMoveCaret Method (VirtualSnapshotPoint, VirtualSnapshotPoint)
Selects from the given anchor point to the active point, moving the caret to the new active point of the selection. The selected span will be made visible.
Namespace: Microsoft.VisualStudio.Text.Operations
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Syntax
'Declaración
Sub SelectAndMoveCaret ( _
anchorPoint As VirtualSnapshotPoint, _
activePoint As VirtualSnapshotPoint _
)
void SelectAndMoveCaret(
VirtualSnapshotPoint anchorPoint,
VirtualSnapshotPoint activePoint
)
void SelectAndMoveCaret(
VirtualSnapshotPoint anchorPoint,
VirtualSnapshotPoint activePoint
)
abstract SelectAndMoveCaret :
anchorPoint:VirtualSnapshotPoint *
activePoint:VirtualSnapshotPoint -> unit
function SelectAndMoveCaret(
anchorPoint : VirtualSnapshotPoint,
activePoint : VirtualSnapshotPoint
)
Parameters
- anchorPoint
Type: Microsoft.VisualStudio.Text.VirtualSnapshotPoint
The anchor point of the new selection.
- activePoint
Type: Microsoft.VisualStudio.Text.VirtualSnapshotPoint
The active point of the new selection and position of the caret.
Remarks
This puts the selection in stream selection mode and does the minimum amount of scrolling required to ensure that the selected span is visible.
.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.