IEditorOperations.SelectAndMoveCaret Method (VirtualSnapshotPoint, VirtualSnapshotPoint, TextSelectionMode, Nullable<EnsureSpanVisibleOptions>)
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.
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, _
scrollOptions As Nullable(Of EnsureSpanVisibleOptions) _
)
void SelectAndMoveCaret(
VirtualSnapshotPoint anchorPoint,
VirtualSnapshotPoint activePoint,
TextSelectionMode selectionMode,
Nullable<EnsureSpanVisibleOptions> scrollOptions
)
void SelectAndMoveCaret(
VirtualSnapshotPoint anchorPoint,
VirtualSnapshotPoint activePoint,
TextSelectionMode selectionMode,
Nullable<EnsureSpanVisibleOptions> scrollOptions
)
abstract SelectAndMoveCaret :
anchorPoint:VirtualSnapshotPoint *
activePoint:VirtualSnapshotPoint *
selectionMode:TextSelectionMode *
scrollOptions:Nullable<EnsureSpanVisibleOptions> -> unit
function SelectAndMoveCaret(
anchorPoint : VirtualSnapshotPoint,
activePoint : VirtualSnapshotPoint,
selectionMode : TextSelectionMode,
scrollOptions : Nullable<EnsureSpanVisibleOptions>
)
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.
scrollOptions
Type: System.Nullable<EnsureSpanVisibleOptions>The scrolling to be done in the view after the selection is made. If nulla null reference (Nothing in Visual Basic), no scrolling is done.
.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.