ContentElementAutomationPeer.GetLabeledByCore 方法

定義

取得 LabelAutomationPeer,目標是與此 ContentElementAutomationPeer 相關聯的 ContentElementGetLabeledBy() 呼叫。

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

傳回

項目的 LabelAutomationPeerLabel 的目標。

備註

例如,如果專案是 控制項, GetLabeledBy 則 方法可能會取得 LabelAutomationPeer 與 相關聯之 的 ComboBoxComboBox

適用於

另請參閱