[]
        
(Showing Draft Content)

C1.Framework.XView.GetBounds

GetBounds Method

GetBounds(Element)

Gets the rectangle that contains a given element.

Declaration
public Rectangle GetBounds(Element e)
Parameters
Type Name Description
Element e

C1.Framework.XView.Element to locate.

Returns
Type Description
Rectangle

Bounds of element e, in client coordinates.

Implements

GetBounds(Element, bool, bool)

Gets the rectangle that contains a given element.

Declaration
public Rectangle GetBounds(Element e, bool contentArea, bool clip)
Parameters
Type Name Description
Element e

C1.Framework.XView.Element to locate.

bool contentArea

Whether to get the bounds of the whole element or just the content area.

bool clip

Whether to clip the rectangle based on ancestor elements.

Returns
Type Description
Rectangle

Bounds of element e, in client coordinates.

Implements
Remarks

This method is similar to the GetBounds(Element) method in the C1.Framework.XView.Element class, except this one takes the current ScrollPosition into account.