AutomationPeer.GetLabeledByCore 方法

定義

當 Microsoft UI 自動化用戶端呼叫 GetLabeledBy 或對等的 Microsoft UI 自動化用戶端 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 中的元素之間建立標籤資訊。

適用於

另請參閱