语言

TextView.MaxEms 属性

定义

如果使用或设置#setMaxWidth(int)#setWidth(int)最大宽度,则返回 TextView 的最大宽度(以 ems 或 -1 为单位)。

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

属性值

如果 ems 中未定义最大宽度,则 TextView 的最大宽度或 -1

特性

注解

如果使用或设置#setMaxWidth(int)#setWidth(int)最大宽度,则返回 TextView 的最大宽度(以 ems 或 -1 为单位)。

Java文档android.widget.TextView.getMaxEms()。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

另请参阅