Back to Devexpress

OptionsNavPane.HeaderImageSize Property

windowsforms-devexpress-dot-xtranavbar-dot-optionsnavpane-40106990.md

latest2.6 KB
Original Source

OptionsNavPane.HeaderImageSize Property

Gets or sets the size of the frame into which the header image of an expanded group is fitted.

Namespace : DevExpress.XtraNavBar

Assembly : DevExpress.XtraNavBar.v25.2.dll

NuGet Package : DevExpress.Win

Declaration

csharp
public virtual Size HeaderImageSize { get; set; }
vb
Public Overridable Property HeaderImageSize As Size

Property Value

TypeDescription
Size

A System.Drawing.Size structure that specifies the size of the frame into which the header image of an expanded group is fitted.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to HeaderImageSize
NavBarControl

.OptionsNavPane .HeaderImageSize

|

Remarks

If the OptionsNavPane.ShowGroupImageInHeader setting is enabled, group headers display images next to their captions. By default, the group header images are fitted (stretched) into a frame of the default size of 16x16 pixels (see OptionsNavPane.DefaultNavPaneHeaderImageSize). Use the HeaderImageSize property to provide a custom size of the frame for the group header images to be stretched.

If you need to provide individual frame sizes for distinct groups, handle the NavBarControl.GroupExpanded event, and specify the required frame size for the expanded group.

See Also

ShowGroupImageInHeader

DefaultNavPaneHeaderImageSize

GroupExpanded

OptionsNavPane Class

OptionsNavPane Members

DevExpress.XtraNavBar Namespace