method Editor.AddItem (Value as Long, Caption as String, [Image as Variant])
Adds a new item to the editor's list.

   Value as Long A long expression that defines a predefined value.  
   Caption as String A string expression that indicates the caption for the Value. The Caption supports HTML format.  
   Image as Variant A long expression that indicates the index of the item's icon.  
Use the AddItem method to add new items to the editor's predefined list. If the AddItem method uses a Value already defined, the old item is replaced. The AddItem method has effect for the following type of editors: DropDownType, DropDownListType, PickEditType, and CheckListType. Check each EditType value for what Value argument should contain. Use the RemoveItem method to remove a particular item from the predefined list. Use the ClearItems method to clear the entire list of predefined values. Use the SortItems to sort the items. Use the ItemToolTip property to assign a tooltip to a predefined item into a drop down list. The Caption parameter supports built-in HTML format like follows:


Send comments on this topic.
1999-2015 Exontrol.COM, Software. All rights reserved.