Table of Contents

Method CheckIntersection

Namespace
SharpVectors.Dom.Svg
Assembly
SharpVectors.Core.dll

CheckIntersection(ISvgElement, ISvgRect)

Returns true if the rendered content of the given element intersects the supplied rectangle, honoring the 'pointer-events' property value on each candidate graphics element.

bool CheckIntersection(ISvgElement element, ISvgRect rect)

Parameters

element ISvgElement

The element on which to perform the given test.

rect ISvgRect

The test rectangle. The values are in the initial coordinate system for the current 'svg' element.

Returns

bool

True or false, depending on whether the given element intersects the supplied rectangle.