Skip to main content

SchedulerSettings.CustomizeElementStyle Property

Enables you to perform custom actions before a scheduler’s visual element is rendered.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public CustomizeElementStyleEventHandler CustomizeElementStyle { get; set; }

Property Value

Type Description
CustomizeElementStyleEventHandler

A CustomizeElementStyleEventHandler delegate method allowing you to implement custom processing.

Remarks

Use CustomizeElementStyle to customize the appearance of the scheduler control’s visual elements. For example, you can specify an element’s foreground, background and border colors, the font settings, etc. To do this, use properties of the style object accessed via CustomizeElementStyleEventArgs.Style. To obtain the element type (date header, vertical or horizontal resource header, all-day area, selection bar, date cell body or date cell header, etc.), use the CustomizeElementStyleEventArgs.ElementType property. The CustomizeElementStyleEventArgs.Cell property provides access to the object containing information on the resource and time interval corresponding to the visual element.

See Also