Region.IsVisible Method (Rectangle)


Tests whether any portion of the specified Rectangle structure is contained within this Region.

Namespace:   System.Drawing
Assembly:  System.Drawing (in System.Drawing.dll)

public bool IsVisible(
	Rectangle rect


Type: System.Drawing.Rectangle

The Rectangle structure to test.

Return Value

Type: System.Boolean

This method returns true when any portion of rect is contained within this Region; otherwise, false.

For a code example, see the IsVisible(RectangleF) method.

.NET Framework
Available since 1.1
Return to top