CustomDrawDayNumberCellEventArgs.Style Property

Gets the painted date cell's appearance settings.

Namespace: DevExpress.XtraEditors.Calendar

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

public AppearanceObject Style { get; set; }
Public Property Style As AppearanceObject

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 CustomDrawDayNumberCellEventArgs.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 CustomDrawDayNumberCellEventArgs.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