語言

TextView.MaxLines 屬性

定義

使用 或 #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 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

另請參閱