ComboBoxField

ComboBoxField class

Class representing Combobox field of the form.

The ComboBoxField type exposes the following members:

Constructors

NameDescription
ComboBoxField()Constructor for ComboBoxField to be used in Generator.
ComboBoxField(doc)Initializes a new instance of the ComboBoxField class
ComboBoxField(page, rect)Initializes a new instance of the ComboBoxField class
ComboBoxField(doc, rect)Initializes a new instance of the ComboBoxField class

Properties

NameDescription
vertical_alignmentNone
horizontal_alignmentNone
marginNone
is_first_paragraph_in_columnNone
is_kept_with_nextNone
is_in_new_pageNone
is_in_line_paragraphNone
hyperlinkNone
z_indexNone
update_appearance_on_convertNone
use_font_subsetNone
flagsNone
annotation_typeNone
widthNone
actionsNone
heightNone
rectGets or sets the field rectangle.
contentsNone
nameNone
modifiedNone
colorNone
borderNone
active_stateNone
characteristicsNone
statesNone
alignmentNone
text_horizontal_alignmentNone
full_nameNone
appearanceNone
page_indexGets index of page which contains this field.
on_activatedNone
highlightingNone
parentNone
default_appearanceNone
read_onlyNone
requiredNone
exportableNone
partial_nameGets or sets partial name of the field.
alternate_nameGets or sets alternate name of the field (An alternate field
name that shall be used in place of the actual field name
wherever the field shall be identified in the user interface).
Alternate name is used as field tooltip in Adobe Acrobat.
mapping_nameGets or sets mapping name of the field that shall be used when exporting interactive form field data from the document.
valueGets or sets value of the field.
is_synchronizedReturns true if dictionary is synchronized.
sync_rootSynchronization object.
is_groupGets or sets boolean value which indicates is this field non-terminal field i.e. group of fields.
annotation_indexGets or sets index of this anotation on the page.
is_shared_fieldProperty for Generator support. Used when field is added to header or footer. If true, this field will created once and it’s appearance will be visible on all pages of the document. If false, separated field will be created for every document page.
fit_into_rectangleIf true then font size will reduced to fit text to specified rectangle.
max_font_sizeMaximail font size which can be used for field contents. -1 to don’t check size.
min_font_sizeMinimal font size which can be used for field contents. -1 to don’t check size.
tab_orderGets or sets tab order of the field.
commit_immediatelyGets or sets commit on selection change flag.
multi_selectGets or sets multiselection flag.
selectedGets or sets index of selected option. This property allows to change selection.
selected_itemsGets or sets array of selected items. For multiselect list array contains more then one item. For single selection list it contains single item.
optionsGets collection of choice options.
editableGets or sets editable status of the field.
spell_checkGets or sets spellchaeck activiity status.

Indexer

NameDescription
[index]Gets subfield contained in this field by index.

Methods

NameDescription
add_option(option_name)Adds new option with specified name.
add_option(export, name)Adds new option with specified name.
clone()None
get_rectangle(consider_rotation)None
accept(visitor)None
flatten()Removes this field and place its value directly on the page.
change_after_resize(transform)None
recalculate()Recaculates all calculated fields on the form.
copy_to(array, index)Copies subfields of this field into array starting from specified index.
set_position(point)Set position of the field.
delete_option(option_name)Deletes option by its name.

See Also