共用方式為


ITextCaret.MoveTo 方法 (ITextViewLine)

將插入號移至指定的文字行中,同時保有其目前的 x 座標。

命名空間:  Microsoft.VisualStudio.Text.Editor
組件:  Microsoft.VisualStudio.Text.UI (在 Microsoft.VisualStudio.Text.UI.dll 中)

語法

'宣告
Function MoveTo ( _
    textLine As ITextViewLine _
) As CaretPosition
CaretPosition MoveTo(
    ITextViewLine textLine
)
CaretPosition MoveTo(
    ITextViewLine^ textLine
)
abstract MoveTo : 
        textLine:ITextViewLine -> CaretPosition
function MoveTo(
    textLine : ITextViewLine
) : CaretPosition

參數

傳回值

類型:Microsoft.VisualStudio.Text.Editor.CaretPosition
CaretPosition ,其中包含發生移動之後插入號的有效值。

.NET Framework 安全性

請參閱

參考

ITextCaret 介面

MoveTo 多載

Microsoft.VisualStudio.Text.Editor 命名空間