Share via


IUIAutomationElement::CurrentLabeledBy Property

Retrieves the element that contains the text label for this element.

Syntax

HRESULT IUIAutomationElement::get_CurrentLabeledBy(IUIAutomationElement **retVal);

Parameters

  • retVal
    The address of a variable that receives the IUIAutomationElement interface of the element that contains the text label.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

This property could be used to retrieve, for example, the static text label for a combo box.

This property maps to the Accessible Rich Internet Applications (ARIA) labeledby property.

See Also

UIA_LabeledByPropertyId, IUIAutomationElement, IUIAutomationElement::CachedLabeledBy