IVsTextStorage.Storage_GetLineIndexOfPosition(Int32, Int32, Int32) Método

Definição

Obtém o índice de linha de uma posição no armazenamento.

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

Parâmetros

iPosition
Int32

no A posição de interesse.

piLine
Int32

fora O número de linha da posição.

piIndex
Int32

fora O índice da posição.

Retornos

Int32

Se o método for bem-sucedido, retornará S_OK. Se falhar, retornará um código de erro.

Comentários

Assinatura COM

De textmgr. idl:

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

Aplica-se a