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.v19.1.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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Handled property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also