Compartilhar via


ViewStructure.SetMaxTextLength(Int32) Method

Definition

Sets the maximum length of the text associated with this view, when supported.

[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

Parameters

maxLength
Int32
Attributes

Remarks

Sets the maximum length of the text associated with this view, when supported.

Should only be set when the node is used for autofill purposes - it will be ignored when used for Assist.

Java documentation for android.view.ViewStructure.setMaxTextLength(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to