VsTextViewClass.SetCaretPos(Int32, Int32) Method

Definition

Sets the coordinates of the end point of a selection.

C++/CX
public:
 virtual int SetCaretPos(int iLine, int iColumn) = Microsoft::VisualStudio::TextManager::Interop::IVsTextView::SetCaretPos;

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.

Implements

Applies to

Produkt Versiounen
Visual Studio SDK 2015, 2017, 2019, 2022