Table of Contents

Method WithRects

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

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

clipRect RectD

The RectD that represents the invalidated rectangle. See ClipRectangle property description.

clientRect RectD

Returns

PaintEventArgs

A new instance of PaintEventArgs with the same canvas and the given rectangle.