AssistStructure.ViewNode.MaxTextLength 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回与此节点关联的文本的最大长度,或者 -1
节点不支持或未设置。
public virtual int MaxTextLength { [Android.Runtime.Register("getMaxTextLength", "()I", "GetGetMaxTextLengthHandler", ApiSince=28)] get; }
[<get: Android.Runtime.Register("getMaxTextLength", "()I", "GetGetMaxTextLengthHandler", ApiSince=28)>]
member this.MaxTextLength : int
属性值
- 属性
注解
返回与此节点关联的文本的最大长度,或者 -1
节点不支持或未设置。 如果未设置文本长度,系统可能会设置默认值。
仅当用于自动填充目的时 AssistStructure
,它才相关,而不适用于辅助目的。
适用于 . 的 android.app.assist.AssistStructure.ViewNode.getMaxTextLength()
Java 文档
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。