다음을 통해 공유


ITextCaret.MoveToPreferredCoordinates Method

Definition

Moves the caret to the preferred x and y-coordinates.

public:
 Microsoft::VisualStudio::Text::Editor::CaretPosition MoveToPreferredCoordinates();
Microsoft::VisualStudio::Text::Editor::CaretPosition MoveToPreferredCoordinates();
public Microsoft.VisualStudio.Text.Editor.CaretPosition MoveToPreferredCoordinates ();
abstract member MoveToPreferredCoordinates : unit -> Microsoft.VisualStudio.Text.Editor.CaretPosition
Public Function MoveToPreferredCoordinates () As CaretPosition

Returns

A CaretPosition that contains the valid values of the caret position after the move has occurred.

Remarks

You cannot change the preferred coordinates by calling this method.

Applies to