ListBoxDrawItemEventArgs.DefaultDraw() Method

Performs default painting of an element.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v21.2.dll


public void DefaultDraw()


The DefaultDraw method can be useful if you need to draw custom information over the default element rendering. To do this, call the DefaultDraw method and then draw custom information using the methods provided by the ListBoxDrawItemEventArgs.Graphics and/or ListBoxDrawItemEventArgs.Appearance objects.

The DefaultDraw method automatically sets the ListBoxDrawItemEventArgs.Handled property to true to prevent additional default painting from being performed after a custom draw event handler has been completed.

The DefaultDraw method does nothing if the ListBoxDrawItemEventArgs.Handled property has already been set to true.

See Also