windowsforms-devexpress-dot-xtraeditors-dot-controls-dba41735.md
Specifies the size mode of the image contained within a PictureEdit or ImageEdit editor.
Namespace : DevExpress.XtraEditors.Controls
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
public enum PictureSizeMode
Public Enum PictureSizeMode
| 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.
|
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
RepositoryItemPictureEdit.SizeMode