Partager via


IVsTextStorage.Storage_GetLineIndexOfPosition(Int32, Int32, Int32) Method

Definition

Gets the line index of a position in the storage.

public:
 int Storage_GetLineIndexOfPosition(int iPosition, [Runtime::InteropServices::Out] int % piLine, [Runtime::InteropServices::Out] int % piIndex);
int Storage_GetLineIndexOfPosition(int iPosition, [Runtime::InteropServices::Out] int & piLine, [Runtime::InteropServices::Out] int & piIndex);
public int Storage_GetLineIndexOfPosition (int iPosition, out int piLine, out int piIndex);
abstract member Storage_GetLineIndexOfPosition : int * int * int -> int
Public 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.

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsTextStorage::Storage_GetLineIndexOfPosition(  
   [in] long iPosition,  
   [out] long *piLine,  
   [out] CharIndex *piIndex  
);  

Applies to