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
声明
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.