Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

FrameworkContentElementAutomationPeer.GetLabeledByCore Method

Gets the LabelAutomationPeer for the Label that is targeted to the FrameworkContentElement that is associated with this FrameworkContentElementAutomationPeer. This method is called by GetLabeledBy.

Namespace:  System.Windows.Automation.Peers
Assembly:  PresentationFramework (in PresentationFramework.dll)

protected override AutomationPeer GetLabeledByCore()

Return Value

Type: System.Windows.Automation.Peers.AutomationPeer
The LabelAutomationPeer for the element that is targeted by the Label.

For example, if the element is a ComboBox control, the GetLabeledBy method can retrieve the AutomationPeer for the Label that is associated with the ComboBox.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft