Back to Devexpress

RibbonEmptyAreaImageOptions.SizeMode Property

windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-ribbonemptyareaimageoptions-67c3efa7.md

latest2.8 KB
Original Source

RibbonEmptyAreaImageOptions.SizeMode Property

Gets or sets whether the image is squeezed, stretched, zoomed, or displayed as is.

Namespace : DevExpress.XtraBars.Ribbon

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(RibbonEmptyAreaImageSizeMode.Default)]
[DXCategory("Layout")]
[XtraSerializableProperty]
public RibbonEmptyAreaImageSizeMode SizeMode { get; set; }
vb
<DXCategory("Layout")>
<DefaultValue(RibbonEmptyAreaImageSizeMode.Default)>
<XtraSerializableProperty>
Public Property SizeMode As RibbonEmptyAreaImageSizeMode

Property Value

TypeDefaultDescription
DevExpress.XtraBars.Ribbon.ViewInfo.RibbonEmptyAreaImageSizeModeDefault

A value that specifies whether the image is squeezed, stretched, zoomed, or displayed as is. Default is Squeeze.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to SizeMode
RibbonControl

.EmptyAreaImageOptions .SizeMode

|

Remarks

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

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

EmptyAreaImageOptions

RibbonEmptyAreaImageOptions Class

RibbonEmptyAreaImageOptions Members

DevExpress.XtraBars.Ribbon Namespace