Share via


VsTextViewClass.GetLineAndColumn(Int32, Int32, Int32) Method

Definition

Converts a text stream position to a line and column index.

public:
 virtual int GetLineAndColumn(int iPos, [Runtime::InteropServices::Out] int % piLine, [Runtime::InteropServices::Out] int % piIndex) = Microsoft::VisualStudio::TextManager::Interop::IVsTextView::GetLineAndColumn;
public:
 virtual int GetLineAndColumn(int iPos, [Runtime::InteropServices::Out] int % piLine, [Runtime::InteropServices::Out] int % piIndex);
 virtual int GetLineAndColumn(int iPos, [Runtime::InteropServices::Out] int & piLine, [Runtime::InteropServices::Out] int & piIndex);
public virtual int GetLineAndColumn (int iPos, out int piLine, out int piIndex);
abstract member GetLineAndColumn : int * int * int -> int
override this.GetLineAndColumn : int * int * int -> int
Public Overridable Function GetLineAndColumn (iPos As Integer, ByRef piLine As Integer, ByRef piIndex As Integer) As Integer

Parameters

iPos
Int32

[in] Integer containing the position in the text stream.

piLine
Int32

[out] Pointer containing the line index corresponding to the stream position.

piIndex
Int32

[out] Pointer containing the column index corresponding to the stream position.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

Applies to