IVsTextStorage.Storage_GetLineIndexOfPosition(Int32, Int32, Int32) Method

Definition

Gets the line index of a position in the storage.

int Storage_GetLineIndexOfPosition(int iPosition, [Runtime::InteropServices::Out] int & piLine, [Runtime::InteropServices::Out] int & piIndex);

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