Back to Devexpress

CustomDrawEventArgs.DefaultDraw() Method

windowsforms-devexpress-dot-xtragantt-dot-customdraweventargs-50f6bb86.md

latest1.6 KB
Original Source

CustomDrawEventArgs.DefaultDraw() Method

Draws the visual element in its default appearance.

Namespace : DevExpress.XtraGantt

Assembly : DevExpress.XtraGantt.v25.2.dll

NuGet Package : DevExpress.Win.Gantt

Declaration

csharp
public virtual void DefaultDraw()
vb
Public Overridable Sub DefaultDraw

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