Aspose::Pdf::Forms::ChoiceField class
Contents
[
Hide
]ChoiceField class
Represents base class for choice fields.
class ChoiceField : public Aspose::Pdf::Forms::Field
Methods
| Method | Description |
|---|---|
| virtual AddOption(const System::String&) | Adds new option with specified name. |
| virtual AddOption(const System::String&, const System::String&) | Adds new option with specified export value and name. |
| ChoiceField(const System::SharedPtr<Aspose::Pdf::Page>&, const System::SharedPtr<Rectangle>&) | Constructor for ChoiceField. |
| ChoiceField(const System::SharedPtr<Document>&) | Creates choice field (for Generator) |
| ChoiceField(const System::SharedPtr<Document>&, const System::SharedPtr<Rectangle>&) | Constructor for ChoiceField. |
| virtual DeleteOption(const System::String&) | Deletes option by its name. |
| get_CommitImmediately() | Gets commit on selection change flag. |
| get_MultiSelect() | Gets multiselection flag. |
| virtual get_Options() | Gets collection of choice options. |
| virtual get_Selected() | Gets index of selected option. This property allows to change selection. |
| virtual get_SelectedItems() | Gets array of selected items. For multiselect list array contains more then one item. For single selection list it contains single item. |
| get_Value() override | Gets value of the field. |
| set_CommitImmediately(bool) | Sets commit on selection change flag. |
| set_MultiSelect(bool) | Sets multiselection flag. |
| virtual set_Selected(int32_t) | Sets index of selected option. This property allows to change selection. |
| virtual set_SelectedItems(System::ArrayPtr<int32_t>) | Sets array of selected items. For multiselect list array contains more then one item. For single selection list it contains single item. |
| set_Value(System::String) override | Sets value of the field. |
See Also
- Class Field
- Namespace Aspose::Pdf::Forms
- Library Aspose.PDF for C++