windowsforms-devexpress-dot-xtratabbedmdi-dot-xtramditabpage-8360ba50.md
Use the ImageOptions property to specify the image displayed within the tab page’s header.
Namespace : DevExpress.XtraTabbedMdi
Assembly : DevExpress.XtraBars.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual Image Image { get; set; }
<Browsable(False)>
<EditorBrowsable(EditorBrowsableState.Never)>
Public Overridable Property Image As Image
| Type | Description |
|---|---|
| Image |
A Image object which represents the image displayed within the tab page’s header.
|
Tab pages can display images in headers.
The ImageOptions property provides access to image-related settings. Use the following properties to display the raster or vector image in the header:
SvgImageSpecifies a vector image (SVG) for the tab header.ImageSpecifies a raster image for the tab header.ImageIndexSpecifies the index of an image from the XtraTabbedMdiManager.Images collection.
The Image property has priority over the ImageIndex property.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Image 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.
{
if ( page.Image != null )
return page.Image;
Protected Function GetMdiTabPageImage(ByVal page As XtraMdiTabPage) As Image
If page.Image IsNot Nothing Then Return page.Image
Return ImageCollection.GetImageListImage(page.TabControl.Images, page.ImageIndex)
See Also