[]
Gets the rectangle that contains a given element.
Rectangle GetBounds(Element e)
| Type | Name | Description |
|---|---|---|
| Element | e | Element to locate. |
| Type | Description |
|---|---|
| Rectangle | Bounds of element |
Gets the rectangle that contains a given element.
Rectangle GetBounds(Element e, bool contentArea, bool clip)
| Type | Name | Description |
|---|---|---|
| Element | e | Element to locate. |
| bool | contentArea | Whether to get the bounds of the whole element or just the content area. |
| bool | clip | Whether to clip the rectangle based on ancestor elements. |
| Type | Description |
|---|---|
| Rectangle | Bounds of element |
This method is similar to the GetBounds(Element) method in the Element class, except this one takes the current ScrollPosition into account.