TextBox.GetCharacterIndexFromLineIndex(Int32) 方法

定義

針對指定行中的第一個字元,傳回以零起始的字元索引。

public:
 int GetCharacterIndexFromLineIndex(int lineIndex);
public int GetCharacterIndexFromLineIndex (int lineIndex);
member this.GetCharacterIndexFromLineIndex : int -> int
Public Function GetCharacterIndexFromLineIndex (lineIndex As Integer) As Integer

參數

lineIndex
Int32

行中以零起始的索引,要為其擷取初始字元索引。

傳回

指定行中第一個字元的以零起始的索引。

適用於

另請參閱