Skip to main content

PictureSizeMode Enum

Specifies the size mode of the image contained within a PictureEdit or ImageEdit editor.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v23.2.dll

NuGet Package: DevExpress.Win.Navigation


public enum PictureSizeMode


Name Description

A picture is not stretched.


A picture is stretched in order to fit within the area of an editor (or editor’s dropdown window).


A picture is stretched proportionally. The picture fits within the area of an editor (or editor’s dropdown window) at least in one direction.


A picture is stretched horizontally. Its height remains unchanged.


A picture is stretched vertically. Its width remains unchanged.


An image is displayed as is if its actual size is smaller than the size of the container. If the image size is larger than the container’s size, the image is shrunk proportionally to fit the container’s bounds.

Related API Members

The following properties accept/return PictureSizeMode values:


The PictureSizeMode enumerator list values specifying size modes available for an image displayed by a PictureEdit or ImageEdit editor. Values of this enumerator are used to set a picture editor’s RepositoryItemPictureEdit.SizeMode and the image editor’s RepositoryItemImageEdit.SizeMode properties.

See Also