Skip to main content
A newer version of this page is available. .

PictureSizeMode Enum

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

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v19.1.dll

Declaration

public enum PictureSizeMode

Members

Name Description
Clip

A picture is not stretched.

Stretch

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

Zoom

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

StretchHorizontal

A picture is stretched horizontally. Its height remains unchanged.

StretchVertical

A picture is stretched vertically. Its width remains unchanged.

Squeeze

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:

Remarks

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