Share via


AutomationPeer.GetLabeledByCore 方法

定義

當 Microsoft 使用者介面自動化 用戶端呼叫 GetLabeledBy 或對等的 Microsoft 使用者介面自動化 用戶端 API 時,提供對等的行為。

protected:
 virtual AutomationPeer ^ GetLabeledByCore() = GetLabeledByCore;
AutomationPeer GetLabeledByCore();
protected virtual AutomationPeer GetLabeledByCore();
function getLabeledByCore()
Protected Overridable Function GetLabeledByCore () As AutomationPeer

傳回

UIElement 目標專案的 AutomationPeer

備註

除了使用標頭或類似的隱喻的復合數據呈現控件之外,指定標籤的控件行為並不常見。 在大部分情況下,應用程式會藉由將 AutomationProperties.LabeledBy 附加屬性套用至 UI 定義 XAML,在應用程式特定 UI 中的元素之間建立標籤資訊。

適用於

另請參閱