Back to Devexpress

DateEdit.CustomDrawDayNumberCell Event

windowsforms-devexpress-dot-xtraeditors-dot-dateedit-b5ff4578.md

latest4.8 KB
Original Source

DateEdit.CustomDrawDayNumberCell Event

OBSOLETE

Use the DrawItem event instead.

Occurs when drawing day cells in the dropdown calendar.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("Use the DrawItem event instead.")]
public event CustomDrawDayNumberCellEventHandler CustomDrawDayNumberCell
vb
<EditorBrowsable(EditorBrowsableState.Never)>
<Browsable(False)>
<Obsolete("Use the DrawItem event instead.")>
Public Event CustomDrawDayNumberCell As CustomDrawDayNumberCellEventHandler

Event Data

The CustomDrawDayNumberCell event's data class is CustomDrawDayNumberCellEventArgs. The following properties provide information specific to this event:

PropertyDescription
BackgroundElementInfoGets or sets the skin element that is used to paint the background of the currently processed cell.
BoundsGets the painted element’s bounding rectangle.
ContentBoundsGets the bounds of the cell’s content (text).
DateGets the painted cell’s value. This property is obsolete. Use the DateTime property instead.
DateOnlyGets the painted cell’s DateOnly value.
DateTimeGets the painted cell’s DateTime value.
DisabledGets whether the painted cell is disabled.
HighlightedGets whether the currently processed cell is under the mouse cursor.
HolidayGets whether the painted cell corresponds to Saturday or Sunday.
InactiveGets whether the painted cell belongs to the previous or next month.
IsPressedGets whether the cell is currently pressed.
IsSpecialGets whether the cell corresponds to a “special” date.
SelectedGets a value indicating whether the processed day number cell is selected.
StateGets the current cell’s state.
StyleGets the painted date cell’s appearance settings.
TodayGets whether the painted cell corresponds to Today’s date.
ViewGets or sets the current View of data in the dropdown window.
ViewInfoContains information used for painting the current cell.

Remarks

This event is obsolete. Handle the DateEdit.DrawItem event instead.

See Also

DateEdit Class

DateEdit Members

DevExpress.XtraEditors Namespace