Method GetWorldBoundingBox
GetWorldBoundingBox(VisualElement)
Get the world bounding box of a VisualElement.
Declaration
public static Rect GetWorldBoundingBox(this VisualElement element)
Parameters
Type | Name | Description |
---|---|---|
VisualElement | element | The VisualElement object. |
Returns
Type | Description |
---|---|
Rect | The world bounding box. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | The VisualElement object can't be null. |