語言

TextView.SetMaxEms(Int32) 方法

定義

將 TextView 的寬度設定為最 maxEms 寬。

[Android.Runtime.Register("setMaxEms", "(I)V", "GetSetMaxEms_IHandler")]
public virtual void SetMaxEms(int maxEms);
[<Android.Runtime.Register("setMaxEms", "(I)V", "GetSetMaxEms_IHandler")>]
abstract member SetMaxEms : int -> unit
override this.SetMaxEms : int -> unit

參數

maxEms
Int32

TextView 最大寬度(以 ems 表示)

屬性

備註

將 TextView 的寬度設定為最 maxEms 寬。

若 LayoutParams 不強制 TextView 具有精確寬度,此值用於寬度計算。 設定此值可覆蓋先前最大寬度配置,如 #setMaxWidth(int)#setWidth(int)

Java 文件 android.widget.TextView.setMaxEms(int)

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於