語言

TextBox.LineCount 屬性

定義

會取得文字框中總行數。

public:
 property int LineCount { int get(); };
public int LineCount { get; }
member this.LineCount : int
Public ReadOnly Property LineCount As Integer

屬性值

文字框中的總行數,若無法提供版面資訊則為 -1 行數。

備註

若啟用文字換行,改變文字框寬度可能會改變此值。

回傳的值是文字框中行數的總數,無論目前可見多少行。

適用於

另請參閱