ContentElementAutomationPeer.GetLabeledByCore Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.Windows.Automation.Peers
Assembly:  PresentationCore (in PresentationCore.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 could get the AutomationPeer for the Label that is associated with the ComboBox.

.NET Framework
Available since 3.0
Return to top
Show: