Table of Contents

Method CheckEnclosure

Namespace
SharpVectors.Dom.Svg
Assembly
SharpVectors.Model.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.

public bool CheckEnclosure(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 is enclosed by the supplied rectangle.