VsTextBufferClass.IVsTextLines_GetPositionOfLineIndex Method

Definition

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

public:
 virtual int IVsTextLines_GetPositionOfLineIndex(int iLine, int iIndex, [Runtime::InteropServices::Out] int % piPosition) = Microsoft::VisualStudio::TextManager::Interop::IVsTextLines::GetPositionOfLineIndex;
public:
 virtual int IVsTextLines_GetPositionOfLineIndex(int iLine, int iIndex, [Runtime::InteropServices::Out] int % piPosition);
 virtual int IVsTextLines_GetPositionOfLineIndex(int iLine, int iIndex, [Runtime::InteropServices::Out] int & piPosition);
public virtual int IVsTextLines_GetPositionOfLineIndex (int iLine, int iIndex, out int piPosition);
abstract member IVsTextLines_GetPositionOfLineIndex : int * int * int -> int
override this.IVsTextLines_GetPositionOfLineIndex : int * int * int -> int
Public Overridable Function IVsTextLines_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.

Applies to