Skip to main content

CustomDrawObjectEventArgs.Info Property

Gets an object containing information about the painted element.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v22.2.dll

NuGet Package: DevExpress.Win.Grid

Declaration

public ObjectInfoArgs Info { get; }

Property Value

Type Description
DevExpress.Utils.Drawing.ObjectInfoArgs

A DevExpress.Utils.Drawing.ObjectInfoArgs object providing information about the painted element.

Remarks

The Info property can be used to:

  • obtain the painted element’s settings and custom paint based on these settings;
  • pass the Info property’s value to the DrawObject method of the object returned by the CustomDrawObjectEventArgs.Painter property. This will paint the element using the default mechanism. Thus, a default appearance can be provided for the painted elements and additional painting performed in them only when required. For example, a check sign could be painted within the focused column’s header;
  • change the Info property’s settings. In this instance, the CustomDrawEventArgs.Handled property can be left set to false thus forcing default painting but with the modified settings.
See Also