VsTextViewClass::GetCaretPos Method (Int32, Int32)
Visual Studio 2015
Returns the line and column index of the cursor position.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
public: virtual int GetCaretPos( [OutAttribute] int% piLine, [OutAttribute] int% piColumn )
Parameters
- piLine
-
Type:
System::Int32
[out] Pointer to an integer containing the line, if the method succeeds.
- piColumn
-
Type:
System::Int32
[out] Pointer to an integer containing the column, if the method succeeds. Viewcol coordinates may include virtual space.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
IVsTextView::GetCaretPos(Int32, Int32)
Show: