The SelectionFormField objet represents a combobox or a drop-down list on a form. It can be initially empty and it can have a horizontal extension, when it is empty. Depending on whether it is editable, the SelectionFormField is either a combobox or a drop-down list.

Syntax

SelectionFormField

Introduced: X18.

Methods

Method Description
getBounds Gets the bounding rectangle of a text field.
(Inherited from FormField)
getContainsInputPosition Returns true, if the Textfield contains the current text input position.
(Inherited from FormField)
getDeleteable Gets whether a text field can be deleted by the end-user while a TX Text Control document is being edited.
(Inherited from FormField)
getDoubledInputPosition Sets whether a text field has a doubled input position in front of its first character and behind its last character.
(Inherited from FormField)
getEditable Gets whether the text of a text field can be changed by the end-user while a TX Text Control document is being edited.
(Inherited from FormField)
getEmptyWidth Gets the horizontal extension, in twips, of the selection formfield, when it is empty.
getEnabled Gets a value indicating whether the form field is enabled.
(Inherited from FormField)
getFormattingBounds Gets the formatting rectangle of a text field.
(Inherited from FormField)
getHighlightColor Gets the highlight color for the text field.
(Inherited from FormField)
getHighlightMode Gets a value indicating when the text field is highlighted.
(Inherited from FormField)
getID Gets an identifier for a text field.
(Inherited from FormField)
getIsDropDownArrowVisible Gets a value indicating whether a dropdown arrow is shown so that the user can select an item.
getIsSpellCheckingEnabled Gets whether a text field's text is checked on misspelled words.
(Inherited from FormField)
getItems Gets a list of items for the SelectionFormField.
getLength Gets the number of characters in a text field.
(Inherited from FormField)
getName Relates a user-defined name to a text field.
(Inherited from FormField)
getSelectedIndex Gets the index of the selected item of the SelectionFormField.
getStart Gets the first character position (one-based) of a text field.
(Inherited from FormField)
getText Gets the text which is contained within a text field.
(Inherited from FormField)
scrollTo Sets the current input position to the beginning of a text field and scrolls it into the visible part of the document.
(Inherited from FormField)
setDeleteable Sets whether a text field can be deleted by the end-user while a TX Text Control document is being edited.
(Inherited from FormField)
setDoubledInputPosition Gets whether a text field has a doubled input position in front of its first character and behind its last character.
(Inherited from FormField)
setEditable Sets whether the text of a text field can be changed by the end-user while a TX Text Control document is being edited.
(Inherited from FormField)
setEmptyWidth Sets the horizontal extension, in twips, of the selection formfield, when it is empty.
setEnabled Sets a value indicating whether the form field is enabled.
(Inherited from FormField)
setHighlightColor Sets the highlight color for the text field.
(Inherited from FormField)
setHighlightMode Sets a value indicating when the text field is highlighted.
(Inherited from FormField)
setID Sets an identifier for the text field.
(Inherited from FormField)
setIsDropDownArrowVisible Sets a value indicating whether a dropdown arrow is shown so that the user can select an item.
setIsSpellCheckingEnabled Gets whether a text field's text is checked on misspelled words.
(Inherited from FormField)
setItems Sets a list of items for the SelectionFormField.
setName Sets the name of a text field.
(Inherited from FormField)
setSelectedIndex Sets the index of the selected item of the SelectionFormField.
setText Sets the text which is contained within a text field.
(Inherited from FormField)