PDFFormFieldComboBox object

PDFFormFieldComboBox object is one of the PDF Builder objects, and is derived from PDFFormField. PDFFormFieldComboBox is used for adding a form field of the combo box type in a PDF document.

To view the full hierarchy of the PDF Builder objects, find "pdfobject" in the Browser, right-click the object, and then select "Show Hierarchy” in the pop-up menu.

Properties

PDFFormFieldComboBox provides the following properties. In addition, it inherits the properties from its parent, PDFFormField.

PDFFormFieldComboBox property

Datatype

Description

Alignment

PDFFormFieldTextAlignment

Gets or sets the alignment mode.

ClassDefinition

PowerObject

Gets or sets the font name.

CurrentValue

String

Gets or sets the current value.

DefaultValue

String

Gets or sets the default value.

Editable

Boolean

Gets or sets whether the object is editable.

Font

PDFFont

Gets or sets the font.

Sorted

Boolean

Gets or sets whether the items in the object shall be automatically sorted.

Tooltip

String

Gets or sets the tooltip.


Events

PDFFormFieldComboBox event

Occurs

Constructor

Immediately before the Open event occurs in the window.

Destructor

Immediately after the Close event occurs in the window.


Functions

PDFFormFieldComboBox provides the following functions.

PDFFormFieldComboBox function

Datatype returned

Description

AddItem

None

Add an item in the combo box.

ClassName

String

Returns the name assigned to the control.

Clone

PDFFormFieldComboBox

Clones the current object.

GetContextService

Integer

Creates a reference to a context-specific instance of the specified service.

GetItemCount

Long

Gets the count of item names.

GetItemText

String

Gets the item text of the specified index.

GetItemCount

Long

Gets the count of item.

GetParent

PowerObject

Returns a reference to the name of the parent object.

GetReadOnly

Boolean

Gets the readonly state.

PostEvent

Boolean

Adds an event to the end of the message queue for the control.

RemoveAllItem

Long

Removes all items.

RemoveItem

Long

Removes the item of the specified index.

SetItemList

None

Sets a list of items.

SetReadOnly

None

Sets the readonly state.

TriggerEvent

Integer

Triggers a specified event in the control and executes the script for the event.

TypeOf

Object

Returns the type of the control.