Skip to main content

RibbonPage.ImageIndex Property

Gets or sets an image displayed within the Ribbon page’s header.

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v23.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[Browsable(false)]
[DefaultValue(-1)]
[EditorBrowsable(EditorBrowsableState.Never)]
[ImageList("Images")]
[XtraSerializableProperty]
public int ImageIndex { get; set; }

Property Value

Type Default Description
Int32 -1

A zero-based index that specifies the image displayed within the Ribbon page’s header.

Remarks

A Ribbon page can display an image within its header (see the image below):

RibbonPageImage

The ImageIndex property specifies the image of the required image contained within the RibbonControl.Images collection.

The page header’s image can also be specified via the RibbonPage.Image property. If both properties are specified, the page header displays the image specified by the RibbonPage.Image property.

You can also specify the alignment of the image, and the distance between the image and text via the RibbonPage.ImageAlign and RibbonPage.ImageToTextIndent properties, respectively.

See Also