[]
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)
Public Function GetBounds(ancestor As Element) As Rectangle
| 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)
Public Function GetBounds(ancestor As Element, contentArea As Boolean, clip As Boolean) As Rectangle
| 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 |