IUIAutomationElement::CurrentBoundingRectangle Property

Retrieves the coordinates of the rectangle that completely encloses the element.

Syntax

HRESULT IUIAutomationElement::get_CurrentBoundingRectangle(RECT *retVal);

Parameters

  • retVal
    The address of a RECT structure that receives the coordinates of the bounding rectangle.

Return Value

Returns S_OK if successful, or an error value otherwise.

See Also

UIA_BoundingRectanglePropertyId, IUIAutomationElement, IUIAutomationElement::CachedBoundingRectangle