TextView.MaxLines 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
使用 或 #setMaxHeight(int)設定最大高度#setHeight(int)時,會傳回 TextView 的行數上限或 -1。
public virtual int MaxLines { [Android.Runtime.Register("getMaxLines", "()I", "GetGetMaxLinesHandler")] get; }
[<get: Android.Runtime.Register("getMaxLines", "()I", "GetGetMaxLinesHandler")>]
member this.MaxLines : int
屬性值
以行數表示 TextView 的最大高度。 若最大高度未以直線定義,則為負1。
- 屬性
備註
使用 或 #setMaxHeight(int)設定最大高度#setHeight(int)時,會傳回 TextView 的行數上限或 -1。
Java 文件 android.widget.TextView.getMaxLines()。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。