Description
Use the wSelected
property to check the state of the specified list box item.
Declaration
TestObj.wSelected(Item)
Read-Only Property | Boolean |
TestObj | A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section | |||
Item | [in] | Required | Variant |
Applies To
The property is applied to the following objects:
Developer Express ASPxListBox, Developer Express CheckedListBox, Developer Express CheckListBox and 14 more objects, Developer Express ListBox, Ext JS Time Picker, Flex List, Java Swing List, jQuery Mobile Select Multiple Menu, Oracle Forms List, Qt ListWidget, Silverlight ListBox, Telerik RadListBox for WinForms, Telerik RadListControl for WinForms, Web List Box, Win32 ListBox, WPF ListBox, XUL Listbox « Collapse the list
View Mode
To view this property in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.
Parameters
The property has the following parameter:
Item
Specifies the caption or zero-based index of the desired item. The caption could contain asterisk (*) or question mark (?) wildcards or regular expressions. The asterisk corresponds to a string of any length, the question mark corresponds to any single character. To specify more complicated parts of a caption, use regular expressions.
The caption can be case-sensitive or case-insensitive depending on the value of the Use case-sensitive parameters project setting.
Property Value
True if the item is selected, False otherwise.
Example
To view an example that demonstrates how to use the wSelected
property, see Checking Whether a List Box Item Is Selected.
See Also
Checking Whether a List Box Item Is Selected
wItem Property (ListBox Controls)
wItemList Property
wSelectedItems Property