VsTextBufferClass.GetPositionOfLine(Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.