ItemAutomationPeer.GetLabeledByCore Method

Definition

Gets the AutomationPeer for the Label that is targeted to the specified UIElement.

protected:
 override System::Windows::Automation::Peers::AutomationPeer ^ GetLabeledByCore();
protected override System.Windows.Automation.Peers.AutomationPeer GetLabeledByCore ();
override this.GetLabeledByCore : unit -> System.Windows.Automation.Peers.AutomationPeer
Protected Overrides Function GetLabeledByCore () As AutomationPeer

Returns

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

Remarks

The UIElement corresponds to the data item in the Items collection that is associated with this ItemAutomationPeer. This method is called by GetLabeledBy.

Applies to

See also