Method WithRects
WithRects(RectD, RectD)
Returns a new instance of PaintEventArgs with the same canvas and
the specified rectangles. If the specified rectangles match the current
rectangles, the current instance is returned.
public virtual PaintEventArgs WithRects(RectD clipRect, RectD clientRect)
Parameters
clipRectRectDThe RectD that represents the invalidated rectangle. See ClipRectangle property description.
clientRectRectD
Returns
- PaintEventArgs
A new instance of
PaintEventArgswith the same canvas and the given rectangle.