BaseGallery.ItemImageLayout Property

Gets or sets how a gallery item's image is displayed within the item's image area.

Namespace: DevExpress.XtraBars.Ribbon.Gallery

Assembly: DevExpress.XtraBars.v20.1.dll

Declaration

[DXCategory("Appearance")]
[DefaultValue(ImageLayoutMode.MiddleCenter)]
public ImageLayoutMode ItemImageLayout { get; set; }
<DXCategory("Appearance")>
<DefaultValue(ImageLayoutMode.MiddleCenter)>
Public Property ItemImageLayout As ImageLayoutMode

Property Value

Type Default Description
ImageLayoutMode

MiddleCenter

An ImageLayoutMode value that specifies how a gallery item's image is arranged.

Remarks

An item's image (GalleryItem.Image/GalleryItem.ImageIndex) can be zoomed, stretched or aligned to various edges of the item's image area. Use the ItemImageLayout property to customize the image layout setting.

To learn how to specify a gallery item image's area size, see BaseGallery.ImageSize.

See Also