Skip to main content

CustomDrawObjectEventArgs.Info Property

Gets an object containing information about the painted element.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v24.1.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation


public ObjectInfoArgs Info { get; }

Property Value

Type Description

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


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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Info property.


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