NumberField

Inheritance: java.lang.Object, com.aspose.pdf.BaseParagraph com.aspose.pdf.Annotation com.aspose.pdf.WidgetAnnotation com.aspose.pdf.Field com.aspose.pdf.TextBoxField com.aspose.pdf.NumberField, com.aspose.pdf.BaseParagraph, com.aspose.pdf.Annotation com.aspose.pdf.WidgetAnnotation com.aspose.pdf.Field com.aspose.pdf.TextBoxField com.aspose.pdf.NumberField, com.aspose.pdf.Annotation, com.aspose.pdf.WidgetAnnotation com.aspose.pdf.Field com.aspose.pdf.TextBoxField com.aspose.pdf.NumberField, com.aspose.pdf.WidgetAnnotation, com.aspose.pdf.Field com.aspose.pdf.TextBoxField com.aspose.pdf.NumberField, com.aspose.pdf.Field, com.aspose.pdf.TextBoxField com.aspose.pdf.NumberField, com.aspose.pdf.TextBoxField, com.aspose.pdf.NumberField

All Implemented Interfaces: com.aspose.ms.System.Collections.Generic.IGenericEnumerable< WidgetAnnotation >, com.aspose.ms.System.Collections.IEnumerable< WidgetAnnotation >, com.aspose.ms.System.ICloneable, Cloneable, Iterable < WidgetAnnotation >

public class NumberField extends TextBoxField

Text Field with specified valid chars @see TextBoxField

Constructors

ConstructorDescription
NumberFieldInitializes a new instance of the {@link NumberField} class.
NumberFieldInitializes a new instance of the {@link NumberField} class.
NumberFieldInitializes a new instance of the {@link NumberField} class.

Methods

MethodDescription
getAllowedCharsGets or sets the allowed chars. Value: The allowed chars string. 0123456789 by default
setAllowedCharsGets or sets the allowed chars. Value: The allowed chars string. 0123456789 by default

NumberField

public NumberField()

Initializes a new instance of the {@link NumberField} class.

NumberField

Initializes a new instance of the {@link NumberField} class.

NumberField

Initializes a new instance of the {@link NumberField} class.

getAllowedChars

public final String getAllowedChars()

Gets or sets the allowed chars. Value: The allowed chars string. 0123456789 by default

Returns: String value

setAllowedChars

Gets or sets the allowed chars. Value: The allowed chars string. 0123456789 by default