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
anchorPoint
Typ: Microsoft.VisualStudio.Text.VirtualSnapshotPointDer Ankerpunkt der neuen Auswahl.
activePoint
Typ: Microsoft.VisualStudio.Text.VirtualSnapshotPointDer aktive Punkt der neuen Auswahl und Position der Einfügemarke.
selectionMode
Typ: Microsoft.VisualStudio.Text.Editor.TextSelectionModeDer Auswahlmodus der neuen Auswahl.
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
- Volle Vertrauenswürdigkeit für den unmittelbaren Aufrufer. Dieser Member kann von nur teilweise vertrauenswürdigem Code nicht verwendet werden. Weitere Informationen finden Sie unter Verwenden von Bibliotheken aus teilweise vertrauenswürdigem Code.