CanvasBackgroundPaintEventArgs

CanvasPaintEventArgsEventArgsReferences
Event arguments used for canvas background painting.

Constructors

CanvasBackgroundPaintEventArgs

#
public CanvasBackgroundPaintEventArgs(Canvas canvas, ControlGraphics graphics, Skin skin)
canvas (Canvas)
graphics (ControlGraphics)
skin (Skin)

Properties

Canvas

public Canvas Canvas { get; }
Gets the canvas associated with this paint event.
inherited fromCanvasPaintEventArgs

DefaultOverridden

#
public bool DefaultOverridden { get; }
Gets whether the default background painting has been overridden.

Graphics

public ControlGraphics Graphics { get; }
Gets the control graphics to use.
inherited fromCanvasPaintEventArgs

Skin

public Skin Skin { get; }
Gets the skin associated with this paint cycle.
inherited fromCanvasPaintEventArgs

Methods

OverrideDefaultPainting

#
public void OverrideDefaultPainting()
Override the default painting. Call this method if your event handler drew a custom background and you do not want the canvas to paint the default grid on top.