'Declaration Public Overloads Function GetBounds( _ ByVal ancestor As Element, _ ByVal contentArea As System.Boolean, _ ByVal clip As System.Boolean _ ) As System.Drawing.Rectangle
public System.Drawing.Rectangle GetBounds( Element ancestor, System.bool contentArea, System.bool clip )
Parameters
- ancestor
- Ancestor element (parent, grand-parent, etc).
- contentArea
- Whether to return the element's outer bounds or content area.
- clip
- Whether to clip the rectangle to the ancestor's content area.
Return Value
A System.Drawing.Rectangle that corresponds to the element's position within the given ancestor.