TextView.SetMinLines(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將 TextView 的高度設定為至少 minLines 高。
[Android.Runtime.Register("setMinLines", "(I)V", "GetSetMinLines_IHandler")]
public virtual void SetMinLines(int minLines);
[<Android.Runtime.Register("setMinLines", "(I)V", "GetSetMinLines_IHandler")>]
abstract member SetMinLines : int -> unit
override this.SetMinLines : int -> unit
參數
- minLines
- Int32
以行數計算的 TextView 最小高度
- 屬性
備註
將 TextView 的高度設定為至少 minLines 高。
如果 LayoutParams 不強制 TextView 有精確高度,這個值會用於高度計算。 設定此值會覆蓋先前其他最小高度配置,如 #setMinHeight(int) 或 #setHeight(int)。
#setSingleLine() 會將此值設為 1。
Java 文件 android.widget.TextView.setMinLines(int)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。