Method WithRect
WithRect(RectD)
Returns a new PaintEventArgs instance with the specified clipping and client rectangles. If the specified rectangle matches both ClipRectangle and ClientRectangle, the current instance is returned.
public virtual PaintEventArgs WithRect(RectD rect)
Parameters
rectRectDThe rectangle to use as both the clipping and client rectangles for the new PaintEventArgs instance.
Returns
- PaintEventArgs
A new PaintEventArgs instance with the specified rectangle as both the clipping and client rectangles, or the current instance if the specified rectangle matches both the ClipRectangle and ClientRectangle.