次の方法で共有


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

  • 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

See Also

Reference

IEditorOperations Interface

SelectAndMoveCaret Overload

Microsoft.VisualStudio.Text.Operations Namespace