Share via


VsTextLineStorageClass.Storage_GetLineIndexOfPosition Method

Definition

Gets the line index of a position in the storage.

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

Parameters

iPosition
Int32

[in] The position of interest.

piLine
Int32

[out] The line number of the position.

piIndex
Int32

[out] The index of the position.

Returns

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

Implements

Applies to