PaintEventArgs

EventArgsReferences
public class PaintEventArgs : EventArgs
Event arguments when painting using the Drawable.Paint event

Constructors

PaintEventArgs

#
public PaintEventArgs(Graphics graphics, RectangleF clipRectangle)
Initializes a new instance of the PaintEventArgs class.
graphics (Graphics)Graphics for the paint event
clipRectangle (RectangleF)Rectangle of the region being painted

Properties

ClipRectangle

#
public RectangleF ClipRectangle { get; }
Gets the rectangle of the region being painted
Remarks: This should be used to optimize what is drawn by only drawing content that intersects with this rectangle.
The clip rectangle for the current paint operation

Graphics

#
public Graphics Graphics { get; }
Gets the graphics for the paint operation