FrameworkElementAutomationPeer.GetLabeledByCore Method

Definition

Gets the AutomationPeer for the Label that is targeted to the ContentElement that is associated with this ContentElementAutomationPeer. Called by GetLabeledBy().

C#
protected override System.Windows.Automation.Peers.AutomationPeer GetLabeledByCore();

Returns

The LabelAutomationPeer for the element that is targeted by the Label.

Remarks

For example, if the element is a ComboBox control, the GetLabeledBy() method could get the AutomationPeer for the Label that is associated with the ComboBox.

Applies to

Product Versions
.NET Framework 3.0, 3.5

See also