PDFFormFieldListBox object

PDFFormFieldListBox object is one of the PDF Builder objects, and is derived from PDFFormField. PDFFormFieldListBox is used for adding a form field of the list 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

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

PDFFormFieldListBox property

Datatype

Description

Alignment

PDFFormFieldTextAlignment

Gets or sets the alignment mode.

ClassDefinition

PowerObject

Gets or sets the font name.

CurrentValue

Long

Gets or sets the current value.

DefaultValue

Long

Gets or sets the default value.

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

PDFFormFieldListBox event

Occurs

Constructor

Immediately before the Open event occurs in the window.

Destructor

Immediately after the Close event occurs in the window.


Functions

PDFFormFieldListBox provides the following functions.

PDFFormFieldListBox function

Datatype returned

Description

AddItem

None

Adds an item with the specified text in the list box.

ClassName

String

Returns the name assigned to the control.

Clone

PDFFormFieldListBox

Clones the current object.

GetContextService

Integer

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

GetItemText

String

Gets the item text of the specified index.

GetItemCount

Long

Gets the count of items.

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.