Skip to main content
A newer version of this page is available.

CustomDrawDayNumberCellEventArgs.Handled Property

Gets or sets a value specifying whether default painting is prohibited.

Namespace: DevExpress.XtraEditors.Calendar

Assembly: DevExpress.XtraEditors.v18.2.dll

Declaration

public bool Handled { get; set; }

Property Value

Type Description
Boolean

true if default painting is prohibited; otherwise false.

Remarks

The DateEdit.DrawItem event used to custom paint day number cells fires before these cells are painted in their default manner. If the Handled property of an event parameter is set to true within a handler, default painting is not performed. Otherwise, painting performed within an event handler is overridden by the control.

The Handled property default value is false. Thus, set it to true when you must override the day number cell’s default painting.

See Also