Share via


VsTextBufferClass.GetPositionOfLineIndex(Int32, Int32, Int32) Method

Definition

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

public:
 virtual int GetPositionOfLineIndex(int iLine, int iIndex, [Runtime::InteropServices::Out] int % piPosition) = Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer::GetPositionOfLineIndex;
public:
 virtual int GetPositionOfLineIndex(int iLine, int iIndex, [Runtime::InteropServices::Out] int % piPosition);
 virtual int GetPositionOfLineIndex(int iLine, int iIndex, [Runtime::InteropServices::Out] int & piPosition);
public virtual int GetPositionOfLineIndex (int iLine, int iIndex, out int piPosition);
abstract member GetPositionOfLineIndex : int * int * int -> int
override this.GetPositionOfLineIndex : int * int * int -> int
Public Overridable Function GetPositionOfLineIndex (iLine As Integer, iIndex As Integer, ByRef piPosition As Integer) As Integer

Parameters

iLine
Int32

[in] Number of the line whose position is requested.

iIndex
Int32

[in] Location of the character on iLine.

piPosition
Int32

[out] Pointer to the equivalent position number.

Returns

If the method succeeds, returns S_OK; otherwise, returns an error code.

Implements

Applies to