Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

NavElement.SmallImageSize Property

Use the SmallImageSize option accessible in NavElement.ImageOptions to get/set the size for the current NavElement‘s small image.

Namespace: DevExpress.XtraNavBar

Assembly: DevExpress.XtraNavBar.v24.2.dll

NuGet Package: DevExpress.Win

#Declaration

[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual Size SmallImageSize { get; set; }

#Property Value

Type Description
Size

A Size structure that is the size for the current NavElement‘s small image.

#Remarks

A NavElement can have both large and small icons. You can set them using LargeImage and SmallImage options accessible in NavElement.ImageOptions. Use the NavBarGroup.GroupCaptionUseImage property for NavBarGroups and the NavBarGroup.GroupStyle property for NavBarItems to choose whether a large or small icon should be displayed.

The SmallImageSize property specifies the small icon size for the current NavElement. You can reset the icon size to the image’s original dimensions by setting the SmallImageSize property to the NavElement.DefaultImageSize value.

See Also