Back to Devexpress

BarCustomDrawEventHandler Delegate

windowsforms-devexpress-dot-xtrabars-31bc99c9.md

latest2.0 KB
Original Source

BarCustomDrawEventHandler Delegate

Represents a method that will handle the BarCustomContainerItem.PaintMenuBar and PopupMenu.PaintMenuBar events.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public delegate void BarCustomDrawEventHandler(
    object sender,
    BarCustomDrawEventArgs e
);
vb
Public Delegate Sub BarCustomDrawEventHandler(
    sender As Object,
    e As BarCustomDrawEventArgs
)

Parameters

NameTypeDescription
senderObject

The source of the event (typically, the object whose content is being painted).

| | e | BarCustomDrawEventArgs |

A BarCustomDrawEventArgs object that contains data related to the event.

|

Remarks

When you create a BarCustomDrawEventHandler delegate, you identify the method that will handle the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate.

See Also

BarCustomDrawEventArgs

BarCustomContainerItem.PaintMenuBar

PopupMenu.PaintMenuBar

DevExpress.XtraBars Namespace