Compartir a través de


IVsTextLayer.GetLastLineIndex(Int32, Int32) Método

Definición

Devuelve la longitud y el índice de la última línea.

public:
 int GetLastLineIndex([Runtime::InteropServices::Out] int % piLine, [Runtime::InteropServices::Out] int % piIndex);
int GetLastLineIndex([Runtime::InteropServices::Out] int & piLine, [Runtime::InteropServices::Out] int & piIndex);
public int GetLastLineIndex (out int piLine, out int piIndex);
abstract member GetLastLineIndex : int * int -> int
Public Function GetLastLineIndex (ByRef piLine As Integer, ByRef piIndex As Integer) As Integer

Parámetros

piLine
Int32

[out] Longitud de la última línea.

piIndex
Int32

[out] Índice de la última línea.

Devoluciones

Si el método se realiza correctamente, devuelve S_OK. Si se produce un error, devuelve un código de error.

Comentarios

Firma COM

Desde textmgr.idl:

HRESULT IVsTextLayer::GetLastLineIndex(  
   [out] long *piLine,  
   [out] long *piIndex  
);   

GetLastLineIndex es un acceso directo para el patrón frecuente de llamar GetLineCount a & luego GetLengthOfLine en la línea.

Se aplica a