The following tables list the members exposed by IValueList.
Name | Description | |
---|---|---|
IsDroppedDown | True if the list is dropped down. This is a readonly property | |
ItemCount | Returns number of items | |
SelectedItemIndex | Returns the index of the selected item. | |
ShouldDisplayImage | Returns whether the image should be displayed | |
ShouldDisplayText | Returns whether the text should be displayed | |
SortByValue | Returns whether the owner should sort by values or display text. If it returns true, the owner should sort by value. Otherwise by display text. |
Name | Description | |
---|---|---|
Activate | Attaches a new owner control and hooks up ItemSelected and CloseUp event handlers. If the list is dropped down by another owner this will cause its closeup event to fire first. Note: Only one owner can be activated at a time. However, it is safe to call this method multiple times with the same owner since it shouldn't do anything in that case | |
CloseUp | Closes up the list | |
DeActivate | Detaches the owner from the value list and also the closeup and ItemSelected even handlers. Note: if the list is dropped down by this owner then this will cause its closeup event to fire. | |
DropDown | Drops down the list. Returns true if successful | |
GetText | Overloaded. Searches for the value and returns the associcated text. Note: it also returns the index which should be used on the next call to optimize the search. The item at that index should be checked first for a match. | |
GetValue | Overloaded. Searches the display text and returns the associcated value. Note: it also returns the index which should be used on the next call to optimize the search | |
MoveFirstItemLastItem | Moves to the first or last item in the list | |
MoveNextItemPreviousItem | Moves to the next or previous item in the list | |
ResolveItemAppearance | Resolves appearance for individual items in the value list. | |
ScrollPageUpPageDown | Scrolls the list by the number of currently visible items |
Name | Description | |
---|---|---|
ListChanged | Fired when a ValueListItem is changed |