VsTextBufferClass.IVsTextLines_GetLineIndexOfPosition Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the line and column numbers in the text buffer, given a position number.
public:
virtual int IVsTextLines_GetLineIndexOfPosition(int iPosition, [Runtime::InteropServices::Out] int % piLine, [Runtime::InteropServices::Out] int % piColumn) = Microsoft::VisualStudio::TextManager::Interop::IVsTextLines::GetLineIndexOfPosition;
public:
virtual int IVsTextLines_GetLineIndexOfPosition(int iPosition, [Runtime::InteropServices::Out] int % piLine, [Runtime::InteropServices::Out] int % piColumn);
virtual int IVsTextLines_GetLineIndexOfPosition(int iPosition, [Runtime::InteropServices::Out] int & piLine, [Runtime::InteropServices::Out] int & piColumn);
public virtual int IVsTextLines_GetLineIndexOfPosition (int iPosition, out int piLine, out int piColumn);
abstract member IVsTextLines_GetLineIndexOfPosition : int * int * int -> int
override this.IVsTextLines_GetLineIndexOfPosition : int * int * int -> int
Public Overridable Function IVsTextLines_GetLineIndexOfPosition (iPosition As Integer, ByRef piLine As Integer, ByRef piColumn As Integer) As Integer
Parameters
- iPosition
- Int32
[in] Position number of the desired line.
- piLine
- Int32
[out] Pointer to the line number.
- piColumn
- Int32
[out] Pointer to the column position on the line.
Returns
If the method succeeds, returns S_OK; otherwise, returns an error code.