ListBox Object Members

Outlook Forms Script Reference

Displays a list of values and lets you select one or more.

Methods

  Name Description
Bb176978.methods(en-us,office.12).gif AddItem For a single-column ListBox, the AddItem method adds an item to the list. For a multicolumn ListBox, this method adds a row to the list.
Bb176978.methods(en-us,office.12).gif Clear Removes all entries in the list in a ListBox.
Bb176978.methods(en-us,office.12).gif RemoveItem Removes a row from the list in a ListBox.

Properties

  Name Description
Bb176978.properties(en-us,office.12).gif BackColor Returns or sets a Long that specifies the background color of the object. Read/write.
Bb176978.properties(en-us,office.12).gif BorderColor Returns or sets a Long that specifies the border color of an object. Read/write.
Bb176978.properties(en-us,office.12).gif BorderStyle Returns or sets an Integer that specifies the type of border of the control. Read/write.
Bb176978.properties(en-us,office.12).gif BoundColumn Returns or sets a Variant that identifies the source of data in a multicolumn ListBox. Read/write.
Bb176978.properties(en-us,office.12).gif Column Returns or sets a Variant that represents a single value, a column of values, or a two-dimensional array to load into a ListBox. Read/write.
Bb176978.properties(en-us,office.12).gif ColumnCount Returns or sets a Long that represents the number of columns to display in a list box. Read/write.
Bb176978.properties(en-us,office.12).gif ColumnHeads Returns or sets a Boolean that specifies whether a single row of column headings are displayed. Read/write.
Bb176978.properties(en-us,office.12).gif ColumnWidths Returns or sets a String that specifies the width of each column in a multicolumn ListBox. Read/write.
Bb176978.properties(en-us,office.12).gif Enabled Returns or sets a Boolean that specifies whether a control can receive the focus and respond to user-generated events. Read/write.
Bb176978.properties(en-us,office.12).gif ForeColor Returns or sets a Long that specifies the foreground color of an object. Read/write.
Bb176978.properties(en-us,office.12).gif IMEMode Returns or sets an Integer that specifies the default run-time mode of the Input Method Editor (IME) for a control. Read/write.
Bb176978.properties(en-us,office.12).gif IntegralHeight Returns or sets a Boolean that specifies whether a ListBox displays full lines of text in a list or partial lines. Read/write.
Bb176978.properties(en-us,office.12).gif List Returns or sets a Variant that represents the specified entry in a ListBox. Read/write.
Bb176978.properties(en-us,office.12).gif ListCount Returns a Long that represents the number of list entries in a control. Read-only.
Bb176978.properties(en-us,office.12).gif ListIndex Returns or sets a Variant that represents the currently selected item in a ListBox. Read/write.
Bb176978.properties(en-us,office.12).gif ListStyle Returns or sets an Integer that specifies the visual appearance of the list in a ListBox. Read/write.
Bb176978.properties(en-us,office.12).gif Locked Returns or sets a Boolean that specifies whether a control can be edited. Read/write.
Bb176978.properties(en-us,office.12).gif MatchEntry Returns or sets an Integer that indicates how a ListBox searches its list as the user types. Read/write.
Bb176978.properties(en-us,office.12).gif MouseIcon Returns a String that represents the full path name of a custom icon that is to be assigned to the control. Read-only.
Bb176978.properties(en-us,office.12).gif MousePointer Returns or sets an Integer that specifies the type of pointer displayed when the user positions the mouse over a particular object. Read/write.
Bb176978.properties(en-us,office.12).gif MultiSelect Returns or sets an Integer that indicates whether the object permits multiple selections. Read/write.
Bb176978.properties(en-us,office.12).gif Selected Returns or sets a Boolean that indicates the selection state of items in a ListBox. Read/write.
Bb176978.properties(en-us,office.12).gif SpecialEffect Returns or sets an Integer that specifies the visual appearance of an object. Read/write.
Bb176978.properties(en-us,office.12).gif Text Returns or sets a String that specifies text in a ListBox, changing the selected row in the control. Read/write.
Bb176978.properties(en-us,office.12).gif TextAlign Returns or sets an Integer that specifies how text is aligned in a control. Read/write.
Bb176978.properties(en-us,office.12).gif TextColumn Returns or sets a Variant that identifies the column in a ListBox to display to the user. Read/write.
Bb176978.properties(en-us,office.12).gif TopIndex Returns or sets a Long that represents the index of the list item displayed in the topmost position in the list. Read/write.
Bb176978.properties(en-us,office.12).gif Value Returns or sets a Variant that specifies the value in the BoundColumn of the currently selected rows. Read/write.

Events

  Name Description
Bb176978.events(en-us,office.12).gif Click Occurs when the user definitively selects a value for the control that has more than one possible value.