AutomationProperties.SetLabeledBy(DependencyObject, UIElement) AutomationProperties.SetLabeledBy(DependencyObject, UIElement) AutomationProperties.SetLabeledBy(DependencyObject, UIElement) AutomationProperties.SetLabeledBy(DependencyObject, UIElement) Method

Definition

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

public : static void SetLabeledBy(DependencyObject element, UIElement value)
static void SetLabeledBy(DependencyObject element, UIElement value) const;
public static void SetLabeledBy(DependencyObject element, UIElement value)
Public Shared Sub SetLabeledBy(element As DependencyObject, value As UIElement)

Parameters

element
DependencyObject DependencyObject

The DependencyObject for which to set the property.

value
UIElement UIElement

The UI element that represents the label for element.