語言

TextBox.GetLineIndexFromCharacterIndex(Int32) 方法

定義

回傳包含指定字元索引的行的零為基礎的行索引。

public:
 int GetLineIndexFromCharacterIndex(int charIndex);
public int GetLineIndexFromCharacterIndex(int charIndex);
member this.GetLineIndexFromCharacterIndex : int -> int
Public Function GetLineIndexFromCharacterIndex (charIndex As Integer) As Integer

參數

charIndex
Int32

以零為基礎的字元索引,用來檢索相關的行索引。

傳回

以零為基礎的索引,代表包含指定字元索引的該行。

適用於

另請參閱