Partager via


IVsTextView.SetCaretPos(Int32, Int32) Method

Definition

Sets the coordinates of the end point of a selection.

public:
 int SetCaretPos(int iLine, int iColumn);
public:
 int SetCaretPos(int iLine, int iColumn);
int SetCaretPos(int iLine, int iColumn);
public int SetCaretPos (int iLine, int iColumn);
abstract member SetCaretPos : int * int -> int
Public Function SetCaretPos (iLine As Integer, iColumn As Integer) As Integer

Parameters

iLine
Int32

[in] Line containing the caret position.

iColumn
Int32

[in] Column identifying the caret position. Viewcol coordinates may include virtual space.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsTextView::SetCaretPos(  
   [in] long iLine,  
   [in] ViewCol iColumn  
);  

Applies to