DockPanel.ImageIndex Property

Gets or sets the index of an image associated with the dock panel.

Namespace: DevExpress.XtraBars.Docking

Assembly: DevExpress.XtraBars.v20.1.dll

Declaration

[Browsable(false)]
[XtraSerializableProperty]
[ImageList("Images")]
public int ImageIndex { get; set; }
<Browsable(False)>
<XtraSerializableProperty>
<ImageList("Images")>
Public Property ImageIndex As Integer

Property Value

Type Description
Int32

An integer value specifying the index of an image within the DockManager.Images list.

Remarks

The ImageIndex property allows you to associate an image from the DockManager.Images list with the current dock panel. You can also use the DockPanel.Image property to set the icon explicitly.

By default, images associated with panels are displayed within tabs when panels are joined into a tab container. Also, these images are painted within panel labels when the auto hide feature is enabled.

To allow images to be displayed within regular panels, set the DockingOptions.ShowCaptionImage property to true.

See Also