IVsTextStorage.Storage_GetPositionOfLineIndex(Int32, Int32, Int32) Method

Definition

Gets the position in the storage of the specified line index.

public:
 int Storage_GetPositionOfLineIndex(int iLine, int iIndex, [Runtime::InteropServices::Out] int % piPosition);
int Storage_GetPositionOfLineIndex(int iLine, int iIndex, [Runtime::InteropServices::Out] int & piPosition);
public int Storage_GetPositionOfLineIndex (int iLine, int iIndex, out int piPosition);
abstract member Storage_GetPositionOfLineIndex : int * int * int -> int
Public Function Storage_GetPositionOfLineIndex (iLine As Integer, iIndex As Integer, ByRef piPosition As Integer) As Integer

Parameters

iLine
Int32

[in] The line number of interest.

iIndex
Int32

[in] The index of interest.

piPosition
Int32

[out] The position of the specified line index.

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_GetPositionOfLineIndex(  
   [in] long iLine,  
   [in] CharIndex iIndex,  
   [out] long *piPosition  
);  

Applies to