VsTextBufferClass.GetLineIndexOfPosition(Int32, Int32, Int32) Method

Definition

Returns the line and column numbers in the text buffer, given a position number.

public:
 virtual int GetLineIndexOfPosition(int iPosition, [Runtime::InteropServices::Out] int % piLine, [Runtime::InteropServices::Out] int % piColumn) = Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer::GetLineIndexOfPosition;
 virtual int GetLineIndexOfPosition(int iPosition, [Runtime::InteropServices::Out] int & piLine, [Runtime::InteropServices::Out] int & piColumn);
public virtual int GetLineIndexOfPosition (int iPosition, out int piLine, out int piColumn);
abstract member GetLineIndexOfPosition : int *  *  -> int
override this.GetLineIndexOfPosition : int *  *  -> int
Public Overridable Function 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.

Implements

Applies to