AssistStructure.ViewNode.MaxTextLength 属性

定义

返回与此节点关联的文本的最大长度,或者 -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 属性许可证中所述的术语使用。

适用于