Skip to content

ShowLabels Property

Description

Specifies whether label controls will be displayed in the gallery.

Property Type

Read-write property

Syntax (Visual Basic)

Public Property ShowLabels() As Boolean

Remarks

Label controls are added using the AddLabel method. Labels are used to organize/group the items in the gallery. ShowLabels will hide or show labels that have been added to the gallery.

It is common to use the same collection of CommandBarGalleryItems for multiple galleries. For example, you might display the same gallery in both the toolbar and as a popup so the entire gallery can be viewed. When a gallery is displayed in a toolbar, labels are not normally displayed, but when displaying all the items in a gallery, as you might in a popup, the labels should be shown.

The diagram below illustrates a gallery that has been added to a popup and is displaying label controls.

Gallery with Labels

The diagram below shows a gallery added to a normal toolbar that is using the same collection of CommandBarGalleryItems as the diagram above, only the labels are hidden so you can see more items.

Gallery without Labels

See Also


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