ViewStructure.SetMaxTextLength(Int32) 方法

定义

设置与此视图关联的文本的最大长度(如果受支持)。

[Android.Runtime.Register("setMaxTextLength", "(I)V", "GetSetMaxTextLength_IHandler", ApiSince=28)]
public virtual void SetMaxTextLength(int maxLength);
[<Android.Runtime.Register("setMaxTextLength", "(I)V", "GetSetMaxTextLength_IHandler", ApiSince=28)>]
abstract member SetMaxTextLength : int -> unit
override this.SetMaxTextLength : int -> unit

参数

maxLength
Int32
属性

注解

设置与此视图关联的文本的最大长度(如果受支持)。

仅当节点用于自动填充时设置 - 当用于 Assist 时,才会忽略它。

Java文档android.view.ViewStructure.setMaxTextLength(int)

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

适用于