PasswordBoxField

PasswordBoxField

概述

PasswordBoxField 是 Aspose.PDF Go 语言开源软件(FOSS)中的一种类型。继承自:TextBoxField。

PasswordBoxField 是一个输入被掩码的文本字段(密码标志)。

此类型在 Go 程序中提供了用于操作 PasswordBoxField 对象的 10 个方法。可用的方法包括: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 设置最大字符数。

另请参阅

 中文