Skip to main content
A newer version of this page is available. .

XtraTabPage.ImageIndex Property

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

Namespace: DevExpress.XtraTab

Assembly: DevExpress.XtraEditors.v19.2.dll

Declaration

[Browsable(false)]
[DefaultValue(-1)]
[ImageList("Images")]
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 XtraTabControl.Images list.

Remarks

Use this property to associate an image from the XtraTabControl.Images list with the current tab page. Images associated with tab pages are displayed within their headers.

The header’s image can also be specified using the XtraTabPage.Image property. If both the XtraTabPage.Image and ImageIndex properties are specified the page header displays the image specified by the XtraTabPage.Image property, as the Image property has a higher priority than the ImageIndex property.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ImageIndex property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also