Back to Devexpress

CustomDrawEventArgs.Handled Property

windowsforms-devexpress-dot-xtragantt-dot-customdraweventargs-54b2a80c.md

latest1.9 KB
Original Source

CustomDrawEventArgs.Handled Property

Gets or sets whether the event is handled and allows you to prevent the control from drawing the visual element in its default appearance.

Namespace : DevExpress.XtraGantt

Assembly : DevExpress.XtraGantt.v25.2.dll

NuGet Package : DevExpress.Win.Gantt

Declaration

csharp
public bool Handled { get; set; }
vb
Public Property Handled As Boolean

Property Value

TypeDescription
Boolean

true if the event is handled; otherwise, false.

|

Remarks

The following event arguments allow you to draw the visual element in its default appearance or suppress the default drawing:

  • The DefaultDraw() method—draws the visual element in its default appearance. You can call this method to first draw the visual element and then draw anything over it.

  • The Handled property—gets or sets whether you handled the event. If the event is handled, the control does not draw the visual element in its default appearance. If you call the DefaultDraw() method, the Handled property is automatically set to true.

See Also

CustomDrawEventArgs Class

CustomDrawEventArgs Members

DevExpress.XtraGantt Namespace