語言

FrameworkContentElementAutomationPeer.GetLabeledByCore 方法

定義

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

傳回

對於被 LabelAutomationPeer所鎖定的元素。Label

備註

例如,若元素為ComboBox控制項,GetLabeledBy該方法可檢索AutomationPeerLabel與 相關聯ComboBox的 。

適用於

另請參閱