Skip to main content

CustomDrawEventArgs.ObjectArgs Property

Gets an object containing information about the painted element.

Namespace: DevExpress.XtraVerticalGrid.Events

Assembly: DevExpress.XtraVerticalGrid.v24.1.dll

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

Declaration

[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual ObjectInfoArgs ObjectArgs { get; }

Property Value

Type Description
DevExpress.Utils.Drawing.ObjectInfoArgs

An ObjectInfoArgs object providing information about the painted element.

Remarks

The ObjectArgs property can be used to:

  • obtain the painted element’s settings and custom paint based on these settings;
  • pass the ObjectArgs property value to the DrawObject method of the object returned by the CustomDrawEventArgs.Painter property. This will paint the element using the default mechanism. Thus, you can provide a default appearance for the painted elements and simply perform additional painting within them;
  • change the ObjectInfo object properties. In this instance, you can leave the CustomDrawEventArgs.Handled property set to false thus forcing default painting, but with modified settings.
See Also