CustomDrawDayNumberCellEventArgs.Handled Property

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

Namespace: DevExpress.XtraEditors.Calendar

Assembly: DevExpress.XtraEditors.v20.1.dll


public bool Handled { get; set; }
Public Property Handled As Boolean

Property Value

Type Description

true if default painting is prohibited; otherwise false.


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