GetBounds(Element) Method
Gets the element's bounds (size and location) within an arbitrary ancestor, in pixels. Ancestor element (parent, grand-parent, etc). A
System.Drawing.Rectangle that corresponds to the element's position within the given .
'Declaration
Public Overloads Function GetBounds( _
ByVal As Element _
) As Rectangle
Parameters
- ancestor
- Ancestor element (parent, grand-parent, etc).
Return Value
A
System.Drawing.Rectangle that corresponds to the element's position within the given .