Delen via


AutomationProperties.GetLabeledBy(DependencyObject) Method

Definition

Gets the value of the AutomationProperties.LabeledBy attached property for the specified DependencyObject.

public:
 static UIElement ^ GetLabeledBy(DependencyObject ^ element);
 static UIElement GetLabeledBy(DependencyObject const& element);
public static UIElement GetLabeledBy(DependencyObject element);
function getLabeledBy(element)
Public Shared Function GetLabeledBy (element As DependencyObject) As UIElement

Parameters

element
DependencyObject

The DependencyObject to check.

Returns

The element that is targeted by the label.

Applies to

See also