RectHelper.Intersect(Rect, Rect) Method

Definition

Returns the areas of two specified Rect values that intersect, as a new Rect. C# code should use Rect.Intersect instead.

public:
 static Rect Intersect(Rect target, Rect rect);
 static Rect Intersect(Rect const& target, Rect const& rect);
public static Rect Intersect(Rect target, Rect rect);
function intersect(target, rect)
Public Shared Function Intersect (target As Rect, rect As Rect) As Rect

Parameters

target
Rect

The first Rect to check for intersection.

rect
Rect

The second Rect to check for intersection.

Returns

A Rect that represents the areas of target and rect that intersect. Can be an Empty value if there is no intersection.

Applies to