VsTextBufferClass.IVsTextLines_GetLineIndexOfPosition Method

Definition

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.

Applies to