語言

TextView.MaxEms 屬性

定義

如果使用 或 #setMaxWidth(int)設定最大寬度,則傳回 Ems 或 -1 的 TextView 寬度#setWidth(int)上限。

public virtual int MaxEms { [Android.Runtime.Register("getMaxEms", "()I", "GetGetMaxEmsHandler")] get; }
[<get: Android.Runtime.Register("getMaxEms", "()I", "GetGetMaxEmsHandler")>]
member this.MaxEms : int

屬性值

如果最大寬度未以 EMS 定義,則以 EMS 或 -1 表示 TextView 的最大寬度

屬性

備註

如果使用 或 #setMaxWidth(int)設定最大寬度,則傳回 Ems 或 -1 的 TextView 寬度#setWidth(int)上限。

Java 文件 android.widget.TextView.getMaxEms()

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

適用於

另請參閱