Back to Devexpress

IModelCommonMemberViewItem.ImageSizeMode Property

expressappframework-devexpress-dot-expressapp-dot-model-dot-imodelcommonmemberviewitem-e9032c3e.md

latest2.8 KB
Original Source

IModelCommonMemberViewItem.ImageSizeMode Property

Specifies how the current Property Editor must resize images.

Namespace : DevExpress.ExpressApp.Model

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
[DefaultValue(ImageSizeMode.Zoom)]
[ModelBrowsable(typeof(ImagePropertyEditorCalculator))]
ImageSizeMode ImageSizeMode { get; set; }
vb
<ModelBrowsable(GetType(ImagePropertyEditorCalculator))>
<DefaultValue(ImageSizeMode.Zoom)>
Property ImageSizeMode As ImageSizeMode

Property Value

TypeDefaultDescription
ImageSizeModeZoom

An ImageSizeMode enumeration value specifying how the current Property Editor must resize images.

|

Available values:

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.

|

Remarks

Use this property to customize image type properties. For more information, refer to the following topic: ImageEditorAttribute.

See Also

IModelCommonMemberViewItem Interface

IModelCommonMemberViewItem Members

DevExpress.ExpressApp.Model Namespace