Partager via


ListBox.Text Property (Outlook Forms Script)

Returns or sets a String that specifies text in a ListBox, changing the selected row in the control. Read/write.

Syntax

expression .Text

expression A variable that represents a ListBox object.

Remarks

The default value is a zero-length string ("").

The value of Text must match an existing list entry. Specifying a value that does not match an existing list entry causes an error.

You cannot use Text to change the value of an entry in a ListBox; use the Column or List property for this purpose.

The ForeColor property determines the color of the text.