CustomDrawObjectEventsArgs.DrawDefault() Method

Renders the element using the default drawing mechanism.

Namespace: DevExpress.XtraSpreadsheet

Assembly: DevExpress.XtraSpreadsheet.v21.2.dll

Declaration

public void DrawDefault()

Remarks

The DrawDefault method invokes the default drawing procedure to paint an element, and enables you to combine your own custom painting with the default. Handle the necessary CustomDraw* event and set the CustomDrawObjectEventsArgs.Handled property to true to prevent default painting from being performed after the handler code is executed. Use the DrawDefault method in the handler code to render the element using the default drawing mechanism.

See Also