IEditorOperations.SelectAndMoveCaret Method (VirtualSnapshotPoint, VirtualSnapshotPoint, TextSelectionMode)
Selects from the specified anchor point to the active point, moving the caret to the new active point of the selection, and ensuring that the selection is in the specified selection mode, and making the selected span visible.
Namespace: Microsoft.VisualStudio.Text.Operations
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Syntax
'Declaration
Sub SelectAndMoveCaret ( _
anchorPoint As VirtualSnapshotPoint, _
activePoint As VirtualSnapshotPoint, _
selectionMode As TextSelectionMode _
)
void SelectAndMoveCaret(
VirtualSnapshotPoint anchorPoint,
VirtualSnapshotPoint activePoint,
TextSelectionMode selectionMode
)
void SelectAndMoveCaret(
VirtualSnapshotPoint anchorPoint,
VirtualSnapshotPoint activePoint,
TextSelectionMode selectionMode
)
abstract SelectAndMoveCaret :
anchorPoint:VirtualSnapshotPoint *
activePoint:VirtualSnapshotPoint *
selectionMode:TextSelectionMode -> unit
function SelectAndMoveCaret(
anchorPoint : VirtualSnapshotPoint,
activePoint : VirtualSnapshotPoint,
selectionMode : TextSelectionMode
)
Parameters
anchorPoint
Type: Microsoft.VisualStudio.Text.VirtualSnapshotPointThe anchor point of the new selection.
activePoint
Type: Microsoft.VisualStudio.Text.VirtualSnapshotPointThe active point of the new selection and position of the caret.
selectionMode
Type: Microsoft.VisualStudio.Text.Editor.TextSelectionModeThe selection mode of the new selection.
Remarks
This 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.