次の方法で共有


ITextCaret.MoveToPreviousCaretPosition Method

Moves the caret to the previous valid CaretPosition.

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

Syntax

'宣言
Function MoveToPreviousCaretPosition As CaretPosition
CaretPosition MoveToPreviousCaretPosition()
CaretPosition MoveToPreviousCaretPosition()
abstract MoveToPreviousCaretPosition : unit -> CaretPosition 
function MoveToPreviousCaretPosition() : CaretPosition

Return Value

Type: Microsoft.VisualStudio.Text.Editor.CaretPosition
A CaretPosition containing the valid values of the caret after the move has occurred.

Remarks

This method handles UTF-16 surrogate pairs and combining character sequences.

.NET Framework Security

See Also

Reference

ITextCaret Interface

Microsoft.VisualStudio.Text.Editor Namespace