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
'宣告
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.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 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.