편집

다음을 통해 공유


FrameworkContentElementAutomationPeer.GetLabeledByCore Method

Definition

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

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

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.

Applies to

See also