FrameworkElementAutomationPeer.GetLabeledByCore 方法

定义

Label 标签获取 AutomationPeer,此标签用于与 ContentElementAutomationPeer 关联的 ContentElementGets the AutomationPeer for the Label that is targeted to the ContentElement that is associated with this ContentElementAutomationPeer. GetLabeledBy() 调用。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

返回

AutomationPeer

Label 所使用的元素的 LabelAutomationPeerThe LabelAutomationPeer for the element that is targeted by the Label.

注解

例如,如果元素是 ComboBox 控件,则此 GetLabeledBy() 方法可能会获取 AutomationPeer Label 与关联 ComboBox 的的。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.

适用于

另请参阅