RibbonPageGroup.ImageIndex Property

Gets or sets the index of the image within the image collection that is displayed within the group when it's in a collapsed state.

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v20.1.dll

Declaration

[Browsable(false)]
[DefaultValue(-1)]
[ImageList("Images")]
[XtraSerializableProperty]
public virtual int ImageIndex { get; set; }
<Browsable(False)>
<DefaultValue(-1)>
<ImageList("Images")>
<XtraSerializableProperty>
Public Overridable Property ImageIndex As Integer

Property Value

Type Default Description
Int32

-1

An integer that specifies the index of the image in the image collection.

Remarks

A Ribbon group is automatically collapsed if there is not enough space to display its links. A collapsed group is represented by its caption which is specified by the RibbonPageGroup.Text property and an image. The following screenshot shows two collapsed groups (File and Edit):

RibbonPageGroup_Collapsed

To specify the image to display within a group when it's in a collapsed state use one of the following methods:

The RibbonPageGroup.Glyph property has a higher priority than the ImageIndex property. So if images are specified via both the RibbonPageGroup.Glyph and RibbonPageGroup.ImageIndex properties, the image assigned to the RibbonPageGroup.Glyph property will be used.

See Also