PictureSizeMode Enum
Specifies the size mode of the image contained within a PictureEdit or ImageEdit editor.
Namespace: DevExpress.XtraEditors.Controls
Assembly: DevExpress.XtraEditors.v18.1.dll
Declaration
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.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the PictureSizeMode enum.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.