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