Skip to main content
Bar

BarCustomDrawEventArgs(Graphics, Rectangle) Constructor

Creates a new instance of the BarCustomDrawEventArgs class.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

Declaration

public BarCustomDrawEventArgs(
    Graphics graphics,
    Rectangle bounds
)

Parameters

Name Type Description
graphics Graphics

A System.Drawing.Graphics class representing the painting surface. This value is assigned to the BarCustomDrawEventArgs.Graphics property.

bounds Rectangle

A System.Drawing.Rectangle structure representing the bounding rectangle of the painted object. This value is assigned to the BarCustomDrawEventArgs.Bounds property.

Remarks

The BarCustomDrawEventArgs class provides data for events that allow you to perform your own painting of interface elements. When such an event is raised, the BarCustomDrawEventArgs object is automatically created and passed to it as the parameter.

See Also