GetBounds(Element) Method
In This Topic
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 .
Syntax
'Declaration
Public Overloads Function GetBounds( _
ByVal As Element _
) As System.Drawing.Rectangle
public System.Drawing.Rectangle GetBounds(
Element
)
Parameters
- ancestor
- Ancestor element (parent, grand-parent, etc).
Return Value
A System.Drawing.Rectangle that corresponds to the element's position within the given .
See Also