Back to Devexpress

XtraMdiTabPage.Image Property

windowsforms-devexpress-dot-xtratabbedmdi-dot-xtramditabpage-8360ba50.md

latest4.0 KB
Original Source

XtraMdiTabPage.Image Property

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

Declaration

csharp
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual Image Image { get; set; }
vb
<Browsable(False)>
<EditorBrowsable(EditorBrowsableState.Never)>
Public Overridable Property Image As Image

Property Value

TypeDescription
Image

A Image object which represents the image displayed within the tab page’s header.

|

Remarks

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.

winforms-tabbed-mdi-manager-display-custom-header-button/CS/WindowsFormsApplication32/MyTabbedMdiManager/MyTabbedMdiManager.cs#L61

csharp
{
    if ( page.Image != null )
        return page.Image;

winforms-tabbed-mdi-manager-display-custom-header-button/VB/WindowsFormsApplication32/MyTabbedMdiManager/MyTabbedMdiManager.vb#L51

vb
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

ImageOptions

Images

StartAnimation()

StopAnimation()

UseFormIconAsPageImage

XtraMdiTabPage Class

XtraMdiTabPage Members

DevExpress.XtraTabbedMdi Namespace