다음을 통해 공유


ITextCaret.MoveToPreferredCoordinates Method

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

Namespace:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

Syntax

'Declaration
Function MoveToPreferredCoordinates As CaretPosition
CaretPosition MoveToPreferredCoordinates()
CaretPosition MoveToPreferredCoordinates()
abstract MoveToPreferredCoordinates : unit -> CaretPosition
function MoveToPreferredCoordinates() : CaretPosition

Return Value

Type: Microsoft.VisualStudio.Text.Editor.CaretPosition
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.

.NET Framework Security

See Also

Reference

ITextCaret Interface

Microsoft.VisualStudio.Text.Editor Namespace