Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

CustomDrawDayNumberCellEventArgs.Style Property

Gets the painted date cell’s appearance settings.

Namespace: DevExpress.XtraEditors.Calendar

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public AppearanceObject Style { get; set; }

#Property Value

Type Description
AppearanceObject

A AppearanceObject object that provides the painted cell’s appearance settings.

#Remarks

The Style property can be used in a number of ways:

  • By reading the Style property’s attributes to custom paint a cell using the default settings. In this case, set the Handled property to true to prevent the default painting mechanism from painting over your paintings.
  • Change specific attributes of the Style property (except for the background color) and leave the Handled property set to false. This forces the date editor to paint the day cell using the default painting mechanism, but with the modified appearance settings. Note that it’s not possible to change a cell’s background color.
See Also