IEditorOperations::SelectAndMoveCaret Method (VirtualSnapshotPoint, VirtualSnapshotPoint, TextSelectionMode, Nullable<EnsureSpanVisibleOptions>)
Visual Studio 2015
Selects from the given anchor point to active point, moving the caret to the new active point of the selection, ensuring that the selection is in the specified selection mode and making the selected span visible.
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
void SelectAndMoveCaret(
VirtualSnapshotPoint anchorPoint,
VirtualSnapshotPoint activePoint,
TextSelectionMode selectionMode,
Nullable<EnsureSpanVisibleOptions> scrollOptions
)
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.
- selectionMode
-
Type:
Microsoft.VisualStudio.Text.Editor::TextSelectionMode
The selection mode of the new selection.
- scrollOptions
-
Type:
System::Nullable<EnsureSpanVisibleOptions>
The scrolling to be done in the view after the selection is made. If null, no scrolling is done.
Show: