Version

IValueList Interface Members

The following tables list the members exposed by IValueList.

Public Properties
 NameDescription
 PropertyIsDroppedDownTrue if the list is dropped down. This is a readonly property  
 PropertyItemCountReturns number of items  
 PropertySelectedItemIndexReturns the index of the selected item.  
 PropertyShouldDisplayImageReturns whether the image should be displayed  
 PropertyShouldDisplayTextReturns whether the text should be displayed  
 PropertySortByValueReturns whether the owner should sort by values or display text. If it returns true, the owner should sort by value. Otherwise by display text.  
Public Methods
 NameDescription
 MethodActivateAttaches 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  
 MethodCloseUpCloses up the list  
 MethodDeActivateDetaches 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.  
 MethodDropDownDrops down the list. Returns true if successful  
 MethodGetTextOverloaded. 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.  
 MethodGetValueOverloaded. 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  
 MethodMoveFirstItemLastItemMoves to the first or last item in the list  
 MethodMoveNextItemPreviousItemMoves to the next or previous item in the list  
 MethodResolveItemAppearanceResolves appearance for individual items in the value list.  
 MethodScrollPageUpPageDownScrolls the list by the number of currently visible items  
Public Events
 NameDescription
 EventListChangedFired when a ValueListItem is changed  
See Also