Share via


UIElementAutomationPeer.GetLabeledByCore 方法

定義

針對這個 AutomationPeer 取得項目的 UIElement,這個項目是以 UIElementAutomationPeer 做為目標。 這個方法是由 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 取得項目的 UIElement,這個項目是以 UIElementAutomationPeer 做為目標。

備註

UIElement以 為目標的專案可以是 Label ,但它不一定是 。 Label如果是 ,則設定 Target 屬性也會自動設定 LabeledBy 屬性。

適用於