VsTextViewClass.SetCaretPos 方法

设置选择的终结点的坐标。

命名空间:  Microsoft.VisualStudio.TextManager.Interop
程序集:  Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)

语法

声明
Public Overridable Function SetCaretPos ( _
    iLine As Integer, _
    iColumn As Integer _
) As Integer
public virtual int SetCaretPos(
    int iLine,
    int iColumn
)
public:
virtual int SetCaretPos(
    [InAttribute] int iLine, 
    [InAttribute] int iColumn
)
abstract SetCaretPos : 
        iLine:int * 
        iColumn:int -> int  
override SetCaretPos : 
        iLine:int * 
        iColumn:int -> int
public function SetCaretPos(
    iLine : int, 
    iColumn : int
) : int

参数

  • iLine
    类型:Int32

    [in] 包含插入符号位置的行。

  • iColumn
    类型:Int32

    [in] 确定插入符号位置的列。 Viewcol 坐标可以包括虚拟空间。

返回值

类型:Int32

实现

IVsTextView.SetCaretPos(Int32, Int32)

.NET Framework 安全性

请参阅

参考

VsTextViewClass 类

Microsoft.VisualStudio.TextManager.Interop 命名空间