RectHelper.Intersect(Rect, Rect) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Returns
A Rect that represents the areas of target
and rect
that intersect. Can be an Empty value if there is no intersection.