ChoiceField
概述
ChoiceField 是 Aspose.PDF 为 C++ 提供的 FOSS 中的一个类。
此类提供了 14 种方法,用于在 C++ 程序中处理 ChoiceField 对象。可用的方法包括:AddOption、CommitImmediately、DeleteOption、MultiSelect、Options、Selected、SelectedItems、Value。在安装 Aspose.PDF 为 C++ 提供的 FOSS 包后,所有公共成员均可供任何 C++ 应用程序访问。
方法
| 签名 | 描述 |
|---|---|
AddOption(optionName: std::string) | 在此 ChoiceField 实例上调用 AddOption(optionName)。 |
AddOption(exportName: std::string, name: std::string) | 在此 ChoiceField 实例上调用 AddOption(exportName, name)。 |
DeleteOption(optionName: std::string) | 在此 ChoiceField 实例上调用 DeleteOption(optionName)。 |
CommitImmediately() → bool | 在此 ChoiceField 实例上调用 CommitImmediately。 |
CommitImmediately(value: bool) | 在此 ChoiceField 实例上调用 CommitImmediately(value)。 |
MultiSelect() → bool | 在此 ChoiceField 实例上调用 MultiSelect。 |
MultiSelect(value: bool) | 在此 ChoiceField 实例上调用 MultiSelect(value)。 |
Selected() → int | 在此 ChoiceField 实例上调用 Selected。 |
Selected(value: int) | 在此 ChoiceField 实例上调用 Selected(value)。 |
SelectedItems() → std::vector<int> | 在此 ChoiceField 实例上调用 SelectedItems。 |
SelectedItems(value: std::vector<int>) | 在此 ChoiceField 实例上调用 SelectedItems(value)。 |
Options() → OptionCollection | 在此 ChoiceField 实例上调用 Options。 |
Value() → std::string | 在此 ChoiceField 实例上调用 Value。 |
Value(value: std::string) | 在此 ChoiceField 实例上调用 Value(value)。 |