Skip to main content

XtraMdiTabPage.ImageIndex Property

Gets or sets the index of the image displayed within the tab page’s header.

Namespace: DevExpress.XtraTabbedMdi

Assembly: DevExpress.XtraBars.v26.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

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

Property Value

Type Default Description
Int32 -1

A zero-based integer value specifying the index of an image within the XtraTabbedMdiManager.Images list.

Remarks

Tab pages can display images in headers.

image

The ImageOptions property provides access to image-related settings. Use the following properties to display the raster or vector image in the header:

SvgImage
Specifies a vector image (SVG) for the tab header.
Image
Specifies a raster image for the tab header.
ImageIndex
Specifies the index of an image from the XtraTabbedMdiManager.Images collection.

The Image property has priority over the ImageIndex property.

Tip

You can also assign an image by its name in the collection.

// The image collection is created and populated with images at design time.
barItem.ImageOptions.Image = imageCollection1["technology_32x32"]; 
// Assign an SVG image in the SvgCollection
// barItem.ImageOptions.SvgImage = svgCollection1["technology_32x32"];

Read the following help topic for more information: Access and Use DevExpress Icons in Code.

See Also