次の方法で共有


IEditorOperations.SelectAndMoveCaret Method

Include Protected Members
Include Inherited Members

Selects from the specified anchor point to the active point, moving the caret to the new active point.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public method SelectAndMoveCaret(VirtualSnapshotPoint, VirtualSnapshotPoint) Selects from the given anchor point to the active point, moving the caret to the new active point of the selection. The selected span will be made visible.
Public method SelectAndMoveCaret(VirtualSnapshotPoint, VirtualSnapshotPoint, TextSelectionMode) Selects from the specified anchor point to the active point, moving the caret to the new active point of the selection, and ensuring that the selection is in the specified selection mode, and making the selected span visible.
Public method SelectAndMoveCaret(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.

Top

See Also

Reference

IEditorOperations Interface

Microsoft.VisualStudio.Text.Operations Namespace