Language

FormWidgetInfo.Builder.SetMaxLength(Int32) Method

Definition

Sets the maximum text length supported by the widget.

[Android.Runtime.Register("setMaxLength", "(I)Landroid/graphics/pdf/models/FormWidgetInfo$Builder;", "", ApiSince=35)]
public Android.Graphics.Pdf.Models.FormWidgetInfo.Builder SetMaxLength(int maxLength);
[<Android.Runtime.Register("setMaxLength", "(I)Landroid/graphics/pdf/models/FormWidgetInfo$Builder;", "", ApiSince=35)>]
member this.SetMaxLength : int -> Android.Graphics.Pdf.Models.FormWidgetInfo.Builder

Parameters

maxLength
Int32

The maximum number of characters supported by a text input widget.

Returns

This builder.

Attributes

Exceptions

Thrown when this widget is not a text field, or when maxLength is negative. Some Android implementations also throw when maxLength is zero.

Remarks

This setting is supported only for text fields. Use a maximum length greater than zero. Some Android implementations reject zero.

Java documentation for android.graphics.pdf.models.FormWidgetInfo.Builder.setMaxLength(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