Поделиться через


ITextCaret.MoveTo Method

Include Protected Members
Include Inherited Members

Moves the caret.

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 MoveTo(ITextViewLine) Moves the caret to the specified text line while preserving its current x-coordinate.
Public method MoveTo(SnapshotPoint) Moves the caret to the given index in the underlying ITextBuffer.
Public method MoveTo(VirtualSnapshotPoint) Moves the caret to the specified buffer position.
Public method MoveTo(ITextViewLine, Double) Moves the caret to the best CaretPosition for the specified x-coordinate and text line.
Public method MoveTo(SnapshotPoint, PositionAffinity) Moves the caret to the given index in the underlying ITextBuffer.
Public method MoveTo(VirtualSnapshotPoint, PositionAffinity) Moves the caret to the specified buffer position.
Public method MoveTo(ITextViewLine, Double, Boolean) Moves the caret to the best CaretPosition for the specified x-coordinate and text line.
Public method MoveTo(SnapshotPoint, PositionAffinity, Boolean) Moves the caret to the given index in the underlying ITextBuffer.
Public method MoveTo(VirtualSnapshotPoint, PositionAffinity, Boolean) Moves the caret to the specified buffer position.

Top

See Also

Reference

ITextCaret Interface

Microsoft.VisualStudio.Text.Editor Namespace