DateField

Overview

DateField is a type in Aspose.PDF FOSS for Go. Inherits from: TextBoxField.

DateField is a text field with a JavaScript date-format action and a format mask (e.g.

This type provides 11 methods for working with DateField objects in Go programs. Available methods include: Format, IsMultiline, IsPassword, MaxLen, SetMaxLen, SetMultiline, SetPassword, SetReadOnly, SetRequired, SetValue, Value. All public members are accessible to any Go application after installing the Aspose.PDF FOSS for Go package.

Methods

SignatureDescription
Format()stringFormat returns the date field’s format mask (parsed back from its format JS).
Value()stringReturns the value.
SetValue(s: string)errorSets the value value.
MaxLen()intReturns the max len.
IsMultiline()boolReturns true if multiline is set.
IsPassword()boolReturns true if password is set.
SetReadOnly(v: bool)Sets the read only value.
SetRequired(v: bool)Sets the required value.
SetMultiline(v: bool)Sets the multiline value.
SetPassword(v: bool)Sets the password value.
SetMaxLen(n: int)SetMaxLen sets the maximum number of characters.

See Also

 English