Skip to main content
All docs
V24.2

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

RibbonEmptyAreaImageOptions.ImageAlignment Property

Gets or sets how the image is aligned in the empty area.

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(ContentAlignment.MiddleRight)]
[DXCategory("Layout")]
[XtraSerializableProperty]
public ContentAlignment ImageAlignment { get; set; }

#Property Value

Type Default Description
ContentAlignment MiddleRight

An alignment.

#Property Paths

You can access this nested property as listed below:

Object Type Path to ImageAlignment
RibbonControl
.EmptyAreaImageOptions .ImageAlignment

#Remarks

Use the EmptyAreaImageOptions property to specify a raster or vector image displayed in the ribbon’s empty area.

Ribbon Control Empty Area Image

The following image options allow you to specify how the image is displayed in the empty area:

  • ImageAlignment — specifies how the image is aligned in the empty area.
  • ImagePadding — specifies the space between the image and the empty area’s edge.
  • SizeMode — specifies whether the image is squeezed, stretched, zoomed, or displayed as is. Default is Squeeze.
See Also