[]
Gets the element's bounds (size and location) within an arbitrary ancestor, in pixels.
Ancestor element (parent, grand-parent, etc).ancestor.public Rectangle GetBounds(Element ancestor)
| Type | Name | Description |
|---|---|---|
| Element | ancestor |
| Type | Description |
|---|---|
| Rectangle |
Gets the element's bounds (size and location) within an arbitrary ancestor, in pixels.
public Rectangle GetBounds(Element ancestor, bool contentArea, bool clip)
| Type | Name | Description |
|---|---|---|
| Element | ancestor | Ancestor element (parent, grand-parent, etc). |
| bool | contentArea | Whether to return the element's outer bounds or content area. |
| bool | clip | Whether to clip the rectangle to the ancestor's content area. |
| Type | Description |
|---|---|
| Rectangle | A Rectangle that corresponds to the element's position
within the given |