AutomationProperties.SetLabeledBy(DependencyObject, UIElement) 方法

定义

设置 LabeledBy 附加属性。

public:
 static void SetLabeledBy(System::Windows::DependencyObject ^ element, System::Windows::UIElement ^ value);
public static void SetLabeledBy (System.Windows.DependencyObject element, System.Windows.UIElement value);
static member SetLabeledBy : System.Windows.DependencyObject * System.Windows.UIElement -> unit
Public Shared Sub SetLabeledBy (element As DependencyObject, value As UIElement)

参数

element
DependencyObject

要在其上设置属性的 DependencyObject

value
UIElement

要设置的 LabeledBy 值。

适用于

另请参阅