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

CustomDrawObjectEventArgs.Info Property

Gets an object containing information about the painted element.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v24.2.dll

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

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

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

Note

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