RectangleIntersect Method (Rectangle, Rectangle)

Returns a third Rectangle structure that represents the intersection of two other Rectangle structures. If there is no intersection, an empty Rectangle is returned.

Namespace:  System.Drawing
Assembly:  Aspose.Drawing (in Aspose.Drawing.dll) Version: 20.9.0.0 (20.9.0)
Syntax
C#
public static Rectangle Intersect(
	Rectangle a,
	Rectangle b
)

Parameters

a
Type: System.DrawingRectangle
First rectangle to intersect.
b
Type: System.DrawingRectangle
Second rectangle to intersect.

Return Value

Type: Rectangle
A Rectangle that represents the intersection of a and b.
See Also