RectHelper.Intersect(Rect, Rect) RectHelper.Intersect(Rect, Rect) RectHelper.Intersect(Rect, Rect) RectHelper.Intersect(Rect, Rect) Method

Definition

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

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

Parameters

target
Rect Rect

The first Rect to check for intersection.

rect
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.