FileSelectBoxField
FileSelectBoxField
概述
FileSelectBoxField 是 Aspose.PDF 为 Go 提供的 FOSS 中的一种类型。继承自:TextBoxField。
FileSelectBoxField 是一个文本字段,其值为文件路径(FileSelect 标志),用于在提交时附加本地文件。
此类型提供 10 个方法,用于在 Go 程序中处理 FileSelectBoxField 对象。可用的方法包括:IsMultiline、IsPassword、MaxLen、SetMaxLen、SetMultiline、SetPassword、SetReadOnly、SetRequired、SetValue、Value。在安装 Aspose.PDF 为 Go 提供的 FOSS 包后,所有公共成员对任何 Go 应用程序均可访问。
方法
| 签名 | 描述 |
|---|---|
Value() → string | 返回该值。 |
SetValue(s: string) → error | 设置值。 |
MaxLen() → int | 返回最大长度。 |
IsMultiline() → bool | 如果已设置 multiline,则返回 true。 |
IsPassword() → bool | 如果已设置密码,则返回 true。 |
SetReadOnly(v: bool) | 设置只读值。 |
SetRequired(v: bool) | 设置所需的值。 |
SetMultiline(v: bool) | 设置多行值。 |
SetPassword(v: bool) | 设置密码值。 |
SetMaxLen(n: int) | SetMaxLen 设置最大字符数。 |