Method CheckEnclosure
- Namespace
- SharpVectors.Dom.Svg
- Assembly
- SharpVectors.Core.dll
CheckEnclosure(ISvgElement, ISvgRect)
Returns true if the rendered content of the given element is entirely contained within the supplied rectangle, honoring the 'pointer-events' property value on each candidate graphics element.
bool CheckEnclosure(ISvgElement element, ISvgRect rect)
Parameters
element
ISvgElementThe element on which to perform the given test.
rect
ISvgRectThe 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 is enclosed by the supplied rectangle.