Xceed SmartUI Documentation
Methods / Add
In This Topic
    Add
    In This Topic

    Adds a SmartItem object to a SmartItems collection and returns a reference to the created object.

    Add(Optional ByVal Index As Long, Optional ByVal Key As String, Optional ByVal Caption As String, Optional ByVal ItemType As SmartItemType, Optional ByVal Image As Variant) As SmartItem

    Syntax

    [SmartItem =] SmartUI.SmartItems.Add([Index],[Key],[Caption],[ItemType],[Image])

    Parameters

    Parameter Type Description
    Index Long Optional - Value that specifies the position to insert the SmartItem. If you do not specify an index, Add appends the SmartItem to the end of the SmartItems collection.
    Key String Optional - Unique string expression that can be used to access a member of the collection.
    Caption String Optional
    ItemType SmartItemType Optional - Value that determines the type of SmartItem being added.
    Image Variant Optional

    Applies To

    SmartItems

    See Also

    NewItem, Count, Clear, Remove, Key, Exists, SmartItemType, SmartItem