Back to Devexpress

ImageSizeMode Enum

expressappframework-devexpress-dot-persistent-dot-base-4656e69e.md

latest3.2 KB
Original Source

ImageSizeMode Enum

Contains values that specify image size modes for images displayed by Image Property Editors.

Namespace : DevExpress.Persistent.Base

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public enum ImageSizeMode
vb
Public Enum ImageSizeMode

Members

NameDescription
Normal

The Image Property Editor displays the StaticImage in the upper-left corner. The image is clipped if it is larger than the Property Editor’s region.

| | StretchImage |

The StaticImage stretches or shrinks to fit the Image Property Editor.

| | AutoSize |

The Image Property Editor’s control is sized to the size of the StaticImage.

| | CenterImage |

The StaticImage is centered inside the Image Property Editor. The StaticImage is clipped if it does not fit into the Property Editor’s region.

| | Zoom |

The StaticImage‘s size is scaled to fit the the Image Property Editor. The StaticImage’s aspect ratio is retained.

|

The following properties accept/return ImageSizeMode values:

Remarks

These enumeration values are used to set the ImageEditorAttribute.ImageSizeMode property.

You can specify the appropriate value in the Model Editor.

If you intend to customize an SVG image with SvgImageHeight and SvgImageWidth properties, choose the AutoSize , CenterImage , or Normal value.

See Also

Add and Replace Icons

How to: Assign Custom Images to Business Classes

DevExpress.Persistent.Base Namespace