Skip to content

Icons Property

Description

Specifies the ImageManagerIcons collection the items in the CommandBarGalleryItems collection will use to hold images for the gallery items.

Property type

Read-write property

Syntax (Visual Basic)

Public Property Icons() As ImageManagerIcons

Remarks

The Icons property allows you to use a separate ImageManagerIcons collection for each collection of gallery items, or you can use the same collection for all.

Example

Icons Sample (Visual Basic)

This sample illustrates how to load images for use with gallery items.

' Loads images for the gallery items only.
Gallery.Icons.LoadBitmap App.Path & "\res\GalleryShapes.bmp", shapesIconArray, xtpImageNormal

' Loads images to the CommandBars image collection and
' uses the CommandBars image collection.
CommandBars.Icons.LoadBitmap App.Path & "\res\GalleryShapes.bmp", shapesIconArray, xtpImageNormal
GalleryShapeItems.Icons = CommandBars.Icons

See Also


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