Freigeben über


IEditorOperations.SelectAndMoveCaret-Methode (VirtualSnapshotPoint, VirtualSnapshotPoint, TextSelectionMode, Nullable<EnsureSpanVisibleOptions>)

Wählt aus dem angegebenen Ankerpunkt dem aktiven Punkt ausgeführt und bewegt die Einfügemarke zum neuen aktiven Punkt der Auswahl und stellt sicher, dass die Auswahl im angegebenen Auswahlmodus und Festlegen der ausgewählten Spanne sichtbar ist.

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>
)

Parameter

  • scrollOptions
    Typ: Nullable<EnsureSpanVisibleOptions>

    Der Bildlauf in der Ansicht hinter der Auswahl getroffen wurde ausgeführt werden sollen. Wenn nullein Nullverweis (Nothing in Visual Basic), kein Bildlauf durchgeführt wird.

.NET Framework-Sicherheit

Siehe auch

Referenz

IEditorOperations Schnittstelle

SelectAndMoveCaret-Überladung

Microsoft.VisualStudio.Text.Operations-Namespace