Back to Devexpress

ImageSliderImageAreaSettings.ImageSizeMode Property

aspnet-devexpress-dot-web-dot-imagesliderimageareasettings-573e7d24.md

latest3.7 KB
Original Source

ImageSliderImageAreaSettings.ImageSizeMode Property

Gets or sets the value specifying how an image fits into the image area.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(ImageSizeMode.ActualSizeOrFit)]
public ImageSizeMode ImageSizeMode { get; set; }
vb
<DefaultValue(ImageSizeMode.ActualSizeOrFit)>
Public Property ImageSizeMode As ImageSizeMode

Property Value

TypeDefaultDescription
ImageSizeModeActualSizeOrFit

One of the ImageSizeMode enumeration values.

|

Available values:

NameDescription
ActualSizeOrFit

If an image is bigger than the image area the image is reduced to fit the area. If an image is smaller than the image area, its size is not changed.

| | FitProportional |

An image is enlarged or reduced to fit the image area.

| | FillAndCrop |

An image is enlarged or reduced to fill the image area. Prominent parts are cropped.

|

Property Paths

You can access this nested property as listed below:

LibraryObject TypePath to ImageSizeMode
ASP.NET MVC ExtensionsImageSliderSettings

.SettingsImageArea .ImageSizeMode

| | ASP.NET Web Forms Controls | ASPxImageSlider |

.SettingsImageArea .ImageSizeMode

|

Remarks

ImageValueDescription
ActualSizeOrFitIf an image is bigger than the image area the image is reduced to fit the area. If an image is smaller than the image area, its size is not changed.
FillAndCropAn image is enlarged or reduced to fill the image area. Prominent parts are cropped.
FitProportionalAn image is enlarged or reduced to fit the image area.

See Also

Image Slider

ImageSliderImageAreaSettings Class

ImageSliderImageAreaSettings Members

DevExpress.Web Namespace