Skip to main content
A newer version of this page is available. .

GraphicsCache.IsNeedDrawRect(Rectangle) Method

Returns whether the region which is bounded by the specified rectangle needs to be redrawn.

Namespace: DevExpress.Utils.Drawing

Assembly: DevExpress.Utils.v18.2.dll

Declaration

public bool IsNeedDrawRect(
    Rectangle r
)

Parameters

Name Type Description
r Rectangle

A Rectangle structure that specifies the rectangle to test.

Returns

Type Description
Boolean

true if the specified rectangle needs to be redrawn; otherwise, false.

Remarks

If the region specified by the r parameter or its portion is visible the IsNeedDrawRect method returns true. The region’s visibility is calculated taking into account the current clipping region.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the IsNeedDrawRect(Rectangle) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also