RectangleF.Contains Method (RectangleF)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Determines if the rectangular region represented by rect is entirely contained within this RectangleF structure.

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

public bool Contains(
	RectangleF rect
)

Parameters

rect
Type: System.Drawing.RectangleF

The RectangleF to test.

Return Value

Type: System.Boolean

This method returns true if the rectangular region represented by rect is entirely contained within the rectangular region represented by this RectangleF; otherwise false.

.NET Framework
Available since 1.1
Return to top
Show: