NavBarGroup.GroupCaptionUseImage Property

Gets or sets whether a big or small image is displayed within the group caption.

Namespace: DevExpress.XtraNavBar

Assembly: DevExpress.XtraNavBar.v20.1.dll

Declaration

[DefaultValue(NavBarImage.Default)]
[XtraSerializableProperty]
public virtual NavBarImage GroupCaptionUseImage { get; set; }
<DefaultValue(NavBarImage.Default)>
<XtraSerializableProperty>
Public Overridable Property GroupCaptionUseImage As NavBarImage

Property Value

Type Default Description
NavBarImage

Default

A NavBarImage value representing the fixed image size to use within the group caption.

Remarks

The GroupCaptionUseImage property controls whether small or large images are displayed within the group caption.

Each NavBar group can display either a small or large image within its caption. You can specify images for the group caption in the following ways:

If an image is assigned to the NavElement.LargeImage property, the NavElement.LargeImageIndex setting is ignored. Similarly, if the NavElement.SmallImage property is set it overrides the image referred to by the NavElement.SmallImageIndex property.

If the GroupCaptionUseImage property is set to NavBarImage.Default then small images if assigned (NavElement.SmallImage and NavElement.SmallImageIndex)have a higher priority than large images (NavElement.LargeImage or NavElement.LargeImageIndex). If small images are not set, the group caption will display a large image, if available.

For groups to explicitly use small or large images, set the GroupCaptionUseImage property to NavBarImage.Small or NavBarImage.Large.

The NavBarGroup.GetImage method returns the image to be displayed within the group caption which depends on the settings specified.

See Also