IVsTextLayer.GetLastLineIndex(Int32, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回最后一行的长度和索引。
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
参数
- piLine
- Int32
[out]最后一行的长度。
- piIndex
- Int32
[out]最后一行的索引。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。
注解
COM 签名
从 textmgr.idl:
HRESULT IVsTextLayer::GetLastLineIndex(
[out] long *piLine,
[out] long *piIndex
);
GetLastLineIndex 是频繁调用 & 然后在GetLengthOfLine行上调用GetLineCount的快捷方式