DateField
DateField
概述
DateField 是 Aspose.PDF 为 Go 提供的 FOSS 中的一种类型。继承自:TextBoxField。
DateField 是一个文本字段,具有 JavaScript 日期格式操作和格式掩码(例如.
此类型提供了 11 个用于在 Go 程序中操作 DateField 对象的方法。可用的方法包括:Format、IsMultiline、IsPassword、MaxLen、SetMaxLen、SetMultiline、SetPassword、SetReadOnly、SetRequired、SetValue、Value。在安装了 Aspose.PDF 为 Go 提供的 FOSS 包后,所有公共成员对任何 Go 应用程序均可访问。
方法
| 签名 | 描述 |
|---|---|
Format() → string | Format 返回日期字段的格式掩码(从其 format JS 解析回来的)。 |
Value() → string | 返回值。 |
SetValue(s: string) → error | 设置值 value。 |
MaxLen() → int | 返回最大长度。 |
IsMultiline() → bool | 如果设置了 multiline,则返回 true。 |
IsPassword() → bool | 如果设置了 password,则返回 true。 |
SetReadOnly(v: bool) | 设置只读值。 |
SetRequired(v: bool) | 设置必需的值。 |
SetMultiline(v: bool) | 设置多行值。 |
SetPassword(v: bool) | 设置密码值。 |
SetMaxLen(n: int) | SetMaxLen 设置最大字符数。 |