Skip to main content
All docs
V21.2

SnapImage.UpdateMode Property

Specifies whether to preserve the image box size or the original image proportions when the SnapImage is resized.

Namespace: DevExpress.Snap.Core.API

Assembly: DevExpress.Snap.v21.2.Core.dll

NuGet Package: DevExpress.Snap.Core

Declaration

UpdateMergeImageFieldMode UpdateMode { get; set; }

Property Value

Type Description
UpdateMergeImageFieldMode

An UpdateMergeImageFieldMode enumeration value.

Available values:

Name Description
KeepSize

The SnapImage dimensions are controlled by its Size property.

KeepScale

The SnapImage dimensions are controlled by its ScaleX and ScaleY properties.

Remarks

When the UpdateMode property is set to KeepSize, the SnapImage‘s dimensions are controlled by its SnapImage.Size property.

When the UpdateMode property is set to KeepScale, the SnapImage‘s dimensions are controlled by its SnapImage.ScaleX and SnapImage.ScaleY properties.

To specify how the image is resized within SnapImage‘s dimensions, use the SnapImage.ImageSizeMode property.

See Also