IVsTextStorage.Storage_GetLineIndexOfPosition(Int32, Int32, Int32) Methode

Definition

Ruft den Zeilen Index einer Position im Speicher ab.

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

Parameter

iPosition
Int32

in Die gewünschte Position.

piLine
Int32

vorgenommen Die Zeilennummer der Position.

piIndex
Int32

vorgenommen Der Index der Position.

Gibt zurück

Int32

Wenn die Methode erfolgreich ist, wird S_OK zurückgegeben. Bei einem Fehler wird ein Fehlercode zurückgegeben.

Hinweise

COM-Signatur

Aus textmgr. idl:

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

Gilt für