Partager via


VsTextBufferClass.GetPositionOfLine(Int32, Int32) Method

Definition

Returns the position number of a line.

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

Parameters

iLine
Int32

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

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