AddItem Method
Description
Adds a gallery item to the Items collection.
Syntax
Public Function AddItem( _
ByVal [Id](#) As Integer, _
ByVal [Caption](#) As String _
) As [CommandBarGalleryItem](XtremeCommandBars~CommandBarGalleryItem.md)
Parameters
- Id: Numeric identifier of the gallery item.
- Caption: Text string to display in the item. The caption will only be displayed if no icon has been added to the gallery item.
Return Type
Returns a reference to the CommandBarGalleryItem that was added to the Items collection.
Remarks
If an image is specified for a gallery item, then only the image will be displayed. If no image is added, then the caption will be displayed.

See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.