TextBox.LineCount 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
會取得文字框中總行數。
public:
property int LineCount { int get(); };
public int LineCount { get; }
member this.LineCount : int
Public ReadOnly Property LineCount As Integer
屬性值
文字框中的總行數,若無法提供版面資訊則為 -1 行數。
備註
若啟用文字換行,改變文字框寬度可能會改變此值。
回傳的值是文字框中行數的總數,無論目前可見多少行。