Skip to main content
A newer version of this page is available.
All docs
V19.1

ASPxSchedulerResourceHeaderOptions.ImageSizeMode Property

Specifies how an image is sized within a Resource Header.

Namespace: DevExpress.Web.ASPxScheduler

Assembly: DevExpress.Web.ASPxScheduler.v19.1.dll

Declaration

public override HeaderImageSizeMode ImageSizeMode { get; set; }

Property Value

Type Description
HeaderImageSizeMode

One of the HeaderImageSizeMode enumeration values.

Available values:

Name Description
Normal

The image is displayed in the center of the resource header. If the image is larger than the resource header, its top left corner is fit into the header, and the other edges are clipped.

CenterImage

The image is displayed in the center of the resource header. If the image is larger than the resource header, it is centered and the outside edges are clipped.

StretchImage

The image within the resource header is stretched or shrunk to the SchedulerResourceHeaderOptions.ImageSize value.

If the ImageSize equals 0 and the SchedulerResourceHeaderOptionsBase.Height > 0, the image’s height or width (depending on the current view - Day View or Timeline View) is set to the SchedulerResourceHeaderOptionsBase.Height value. If the ImageSize equals 0 and the SchedulerResourceHeaderOptionsBase.Height < = 0, the image’s height or width (depending on the current view - Day View or Timeline View) is calculated as 1/6 of the view’s height (or width).

ZoomImage

The image within the resource header is resized, maintaining the size ratio.

It is resized to the SchedulerResourceHeaderOptions.ImageSize value if it is greater than zero. If the ImageSize equals 0 and the SchedulerResourceHeaderOptionsBase.Height > 0, the image’s height or width (depending on the current view - Day View or Timeline View) is set to the SchedulerResourceHeaderOptionsBase.Height value. If the ImageSize equals 0 and the SchedulerResourceHeaderOptionsBase.Height < = 0, the image’s height or width (depending on the current view - Day View or Timeline View) is calculated as 1/6 of the view’s height (or width).

Property Paths

You can access this nested property as listed below:

Library Object Type Path to ImageSizeMode
ASP.NET Controls and MVC Extensions ASPxSchedulerOptionsView
.ResourceHeaders.ImageSizeMode
ASP.NET Bootstrap Controls BootstrapSchedulerOptionsView
.ResourceHeaders.ImageSizeMode
See Also