共用方式為


FrameworkElementAutomationPeer 類別

定義

FrameworkElement 衍生類型公開 (包括所有控件) 給 Microsoft 使用者介面自動化。

/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class FrameworkElementAutomationPeer : AutomationPeer
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public class FrameworkElementAutomationPeer : AutomationPeer
Public Class FrameworkElementAutomationPeer
Inherits AutomationPeer
繼承
Object IInspectable DependencyObject AutomationPeer FrameworkElementAutomationPeer
衍生
屬性

範例

此範例顯示從 FrameworkElementAutomationPeer 衍生對等並支援至少一個控件模式的基本子類別需求。

此程式代碼是 XAML 輔助功能範例的摘錄。

注意

此範例不會維護,而且可能不會進行編譯。

        public class MediaContainerAP : FrameworkElementAutomationPeer, IRangeValueProvider, IToggleProvider
        {
            MediaElement _mediaElement;
            FrameworkElement _labeledBy;
// nondefault ctors omitted
            protected override object GetPatternCore(PatternInterface patternInterface)
            {
                if (patternInterface == PatternInterface.RangeValue)
                {
                    return this;
                }
                else if (patternInterface == PatternInterface.Toggle)
                {
                    return this;
                }
                return null;
            }


            protected override AutomationControlType GetAutomationControlTypeCore()
            {
                return AutomationControlType.Group;
            }

            protected override string GetLocalizedControlTypeCore()
            {
                return "Video";
            }

            protected override string GetClassNameCore()
            {
                return "MediaElementContainer";
            }
// pattern implementation omitted ...
        }

下列 C++/WinRT 程式代碼範例的 MIDL 3.0 檔案。

// MediaElementContainer.idl
namespace MyNamespace
{
    runtimeclass MediaElementContainer : Windows.UI.Xaml.Controls.ContentControl
    {
        MediaElementContainer(Windows.UI.Xaml.Controls.Panel parent);
        ...
    };
}
// MediaContainerAP.idl
import "MediaElementContainer.idl";

namespace MyNamespace
{
    runtimeclass MediaContainerAP : Windows.UI.Xaml.Automation.Peers.FrameworkElementAutomationPeer,
        Windows.UI.Xaml.Automation.Provider.IRangeValueProvider,
        Windows.UI.Xaml.Automation.Provider.IToggleProvider
    {
        MediaContainerAP(MediaElementContainer owner, Windows.UI.Xaml.Controls.MediaElement mediaElement);
        ...
    };
}
// MediaContainerAP.h
struct MediaContainerAP : MediaContainerAPT<MediaContainerAP>
{
    MediaContainerAP() = delete;
	// Non-default ctors omitted.

    Windows::Foundation::IInspectable GetPatternCore(Windows::UI::Xaml::Automation::Peers::PatternInterface const& patternInterface)
    {
        if (patternInterface == Windows::UI::Xaml::Automation::Peers::PatternInterface::RangeValue)
        {
            return *this;
        }
        else if (patternInterface == Windows::UI::Xaml::Automation::Peers::PatternInterface::Toggle)
        {
            return *this;
        }
        return nullptr;
    }

    Windows::UI::Xaml::Automation::Peers::AutomationControlType GetAutomationControlTypeCore()
    {
        return Windows::UI::Xaml::Automation::Peers::AutomationControlType::Group;
    }

    winrt::hstring GetLocalizedControlTypeCore()
    {
        return L"Video";
    }

    winrt::hstring GetClassNameCore()
    {
        return L"MediaElementContainer";
    }

	// Pattern implementation omitted.
};
// header
        public ref class MediaContainerAP sealed :  Windows::UI::Xaml::Automation::Peers::FrameworkElementAutomationPeer
                                                    ,Windows::UI::Xaml::Automation::Provider::IRangeValueProvider
                                                    ,Windows::UI::Xaml::Automation::Provider::IToggleProvider
        {
// nondefault ctors omitted
        protected: 
            virtual Object^ GetPatternCore(PatternInterface patternInterface) override
            {
                if (patternInterface == PatternInterface::RangeValue)
                {
                    return this;
                }
                else if (patternInterface == PatternInterface::Toggle)
                {
                    return this;
                }
                return nullptr;
            }

        protected:
            virtual  AutomationControlType GetAutomationControlTypeCore() override
            {
                return  AutomationControlType::Group;
            }

        protected:
            virtual Platform::String^ GetLocalizedControlTypeCore() override
            {
                return "Video";
            }

        protected:
            virtual Platform::String^ GetClassNameCore() override
            {
                return "MediaElementContainer";
            }
// pattern implementation omitted

備註

沒有 「ControlAutomationPeer」 類別。 FrameworkElementAutomationPeer 可作為涉及 Microsoft 使用者介面自動化 之所有基本 Control 類別案例的實作。 這包括不一定顯示為公開 API 的行為,例如 AutomationPeer 中許多 Core 方法的實際實作。

FrameworkElementAutomationPeer 包含對等行為的廣泛基底實作,其他對等可用來報告來自 UIElementFrameworkElement 層級擁有者類別的資訊。 For more info, see the "Base implementation in FrameworkElementAutomationPeer" section of Custom automation peers.

除了 Core 覆寫之外,FrameworkElementAutomationPeer 還有兩個靜態公用程式方法,可用於從控制程式碼內取得對等句柄,或從 Microsoft 使用者介面自動化 支援的專案容器對等產生專案對等。 這些工具為:

如果您需要定義自定義自動化對等,而且無法識別與衍生自擁有者類別之控件或基類配對的衍生對等類別,您應該以 FrameworkElementAutomationPeer 作為對等基礎。 即使擁有者類別不一定是 FrameworkElement,您也無法直接從 AutomationPeer 衍生對等,因為 FrameworkElementAutomationPeer 有許多覆寫可提供配置、自動化和 UI 互動的預期行為。 您至少需要從 UIElement 衍生擁有者類別,否則無法使用 OnCreateAutomationPeer在自動化樹狀結構載入上建立對等。

FrameworkElementAutomationPeer 衍生類別

FrameworkElementAutomationPeer 是數個立即衍生類別的父類別,可實作對 Windows 執行階段 控件和元素的對等支援。 其中有些對等類別是符合控件基類的對等,而不是實際控件。 例如,ButtonBaseAutomationPeer 存在,因此它可以為數個支援衍生自 ButtonBase 之實際 Button 類別的類別定義共用對等行為。 以下是直接衍生自 FrameworkElementAutomationPeer 的類別列表:

建構函式

FrameworkElementAutomationPeer(FrameworkElement)

初始化 FrameworkElementAutomationPeer 類別的新實例。

屬性

Dispatcher

一律會在 null Windows 應用程式 SDK 應用程式中傳回。 請改用 DispatcherQueue

(繼承來源 DependencyObject)
DispatcherQueue

DispatcherQueue取得與這個 物件相關聯的 。 DispatcherQueue表示即使程式代碼是由非 UI 線程起始,也可以存取 DependencyObject UI 線程上的 。

(繼承來源 DependencyObject)
EventsSource

取得或設定 向自動化客戶端報告的 AutomationPeer ,做為來自這個 AutomationPeer 之所有事件的來源。 請參閱<備註>。

(繼承來源 AutomationPeer)
Owner

取得與此 FrameworkElementAutomationPeer 相關聯的 UIElement 擁有者。

方法

ClearValue(DependencyProperty)

清除相依性屬性的本機值。

(繼承來源 DependencyObject)
CreatePeerForElement(UIElement)

為指定的 UIElement 建立 FrameworkElementAutomationPeer

FromElement(UIElement)

會傳回指定之 UIElementFrameworkElementAutomationPeer

GetAcceleratorKey()

取得與 使用者介面自動化 對等相關聯之 物件的快捷鍵組合。

(繼承來源 AutomationPeer)
GetAcceleratorKeyCore()

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

(繼承來源 AutomationPeer)
GetAccessKey()

取得與自動化對等相關聯之項目的存取金鑰。

(繼承來源 AutomationPeer)
GetAccessKeyCore()

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

(繼承來源 AutomationPeer)
GetAnimationBaseValue(DependencyProperty)

傳回針對相依性屬性所建立的任何基底值,如果動畫未使用中,則會套用。

(繼承來源 DependencyObject)
GetAnnotations()

取得目前自動化對等使用者介面自動化註釋清單的參考。

(繼承來源 AutomationPeer)
GetAnnotationsCore()

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

(繼承來源 AutomationPeer)
GetAutomationControlType()

取得與 使用者介面自動化 對等相關聯之專案的控件類型。

(繼承來源 AutomationPeer)
GetAutomationControlTypeCore()

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

(繼承來源 AutomationPeer)
GetAutomationId()

取得與自動化對等相關聯之專案的 AutomationId

(繼承來源 AutomationPeer)
GetAutomationIdCore()

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

(繼承來源 AutomationPeer)
GetBoundingRectangle()

取得 Rect 物件,表示與自動化對等相關聯之專案的螢幕座標。

(繼承來源 AutomationPeer)
GetBoundingRectangleCore()

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

(繼承來源 AutomationPeer)
GetChildren()

取得子專案集合,這些子專案會以自動化對等的直接子專案表示於 使用者介面自動化 樹狀結構中。

(繼承來源 AutomationPeer)
GetChildrenCore()

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

(繼承來源 AutomationPeer)
GetClassName()

取得與 AutomationControlType 搭配使用的名稱,以區分這個 AutomationPeer 所代表的控件。

(繼承來源 AutomationPeer)
GetClassNameCore()

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

(繼承來源 AutomationPeer)
GetClickablePoint()

取得專案上的點,該專案與回應滑鼠按兩下的自動化對等相關聯。

(繼承來源 AutomationPeer)
GetClickablePointCore()

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

(繼承來源 AutomationPeer)
GetControlledPeers()

當 Microsoft 使用者介面自動化 用戶端呼叫 GetControlledPeers 或對等的 Microsoft 使用者介面自動化 用戶端 API 時,提供對等的行為,例如取得由 UIA_ControllerForPropertyId 所識別的屬性值。

(繼承來源 AutomationPeer)
GetControlledPeersCore()

取得目前自動化對等的受控制對等清單。

(繼承來源 AutomationPeer)
GetCulture()

呼叫 GetCultureCore ,以取得與自動化對等相關聯之專案的文化特性值。

(繼承來源 AutomationPeer)
GetCultureCore()

取得與自動化對等相關聯之專案的文化特性值。

(繼承來源 AutomationPeer)
GetDescribedByCore()

取得專案集合,提供自動化專案的詳細資訊。

(繼承來源 AutomationPeer)
GetElementFromPoint(Point)

從指定的點取得專案。

(繼承來源 AutomationPeer)
GetElementFromPointCore(Point)

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

(繼承來源 AutomationPeer)
GetFlowsFromCore()

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

(繼承來源 AutomationPeer)
GetFlowsToCore()

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

(繼承來源 AutomationPeer)
GetFocusedElement()

取得目前具有焦點的專案。

(繼承來源 AutomationPeer)
GetFocusedElementCore()

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

(繼承來源 AutomationPeer)
GetFullDescription()

取得當地語系化字串,描述影像或影像控制項等專案的實際視覺外觀或內容。

(繼承來源 AutomationPeer)
GetFullDescriptionCore()

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

(繼承來源 AutomationPeer)
GetHeadingLevel()

取得與此自動化對等相關聯之 使用者介面自動化 項目的標題層級。

(繼承來源 AutomationPeer)
GetHeadingLevelCore()

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

(繼承來源 AutomationPeer)
GetHelpText()

取得文字,這個文字描述與自動化對等個體關聯之控制項的功能。

(繼承來源 AutomationPeer)
GetHelpTextCore()

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

(繼承來源 AutomationPeer)
GetItemStatus()

取得文字,這個文字表示與此自動化對等個體關聯之項目的視覺化狀態。

(繼承來源 AutomationPeer)
GetItemStatusCore()

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

(繼承來源 AutomationPeer)
GetItemType()

取得字串,描述專案所代表的項目種類。

(繼承來源 AutomationPeer)
GetItemTypeCore()

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

(繼承來源 AutomationPeer)
GetLabeledBy()

取得以 項目為目標之 UIElementAutomationPeer

(繼承來源 AutomationPeer)
GetLabeledByCore()

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

(繼承來源 AutomationPeer)
GetLandmarkType()

取得這個自動化對等的地標類型。

(繼承來源 AutomationPeer)
GetLandmarkTypeCore()

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

(繼承來源 AutomationPeer)
GetLevel()

傳回與自動化對等相關聯之專案之層級 (階層) 以 1 起始的整數。

(繼承來源 AutomationPeer)
GetLevelCore()

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

(繼承來源 AutomationPeer)
GetLiveSetting()

取得與 使用者介面自動化 對等相關聯之 對象的即時設定通知行為資訊。

(繼承來源 AutomationPeer)
GetLiveSettingCore()

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

(繼承來源 AutomationPeer)
GetLocalizedControlType()

取得當地語系化字串,表示與這個自動化對等相關聯之控件的 AutomationControlType 值。

(繼承來源 AutomationPeer)
GetLocalizedControlTypeCore()

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

(繼承來源 AutomationPeer)
GetLocalizedLandmarkType()

取得當地語系化字串,表示與此自動化對等相關聯之專案的 AutomationLandmarkType 值。

(繼承來源 AutomationPeer)
GetLocalizedLandmarkTypeCore()

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

(繼承來源 AutomationPeer)
GetName()

取得文字,這個文字描述與此自動化對等個體關聯的項目。 Microsoft 使用者介面自動化 Name 值是大部分輔助技術透過與 Microsoft 使用者介面自動化 架構互動來代表應用程式 UI 時所使用的主要標識符。

(繼承來源 AutomationPeer)
GetNameCore()

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

(繼承來源 AutomationPeer)
GetOrientation()

取得值,這個值表示明確的控制項方向 (若有的話)。

(繼承來源 AutomationPeer)
GetOrientationCore()

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

(繼承來源 AutomationPeer)
GetParent()

取得這個 AutomationPeer 的父系 AutomationPeer

(繼承來源 AutomationPeer)
GetPattern(PatternInterface)

取得與指定 PatternInterface 相關聯的控件模式。

(繼承來源 AutomationPeer)
GetPatternCore(PatternInterface)

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

(繼承來源 AutomationPeer)
GetPeerFromPoint(Point)

從指定的點取得 AutomationPeer

(繼承來源 AutomationPeer)
GetPeerFromPointCore(Point)

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

(繼承來源 AutomationPeer)
GetPositionInSet()

針對與自動化對等相關聯的專案,傳回集合中序數位置的 1 型整數。

(繼承來源 AutomationPeer)
GetPositionInSetCore()

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

(繼承來源 AutomationPeer)
GetSizeOfSet()

傳回與自動化對等相關聯之專案所在集合大小的 1 型整數。

(繼承來源 AutomationPeer)
GetSizeOfSetCore()

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

(繼承來源 AutomationPeer)
GetValue(DependencyProperty)

DependencyObject 傳回相依性屬性的目前有效值。

(繼承來源 DependencyObject)
HasKeyboardFocus()

取得值,這個值表示與這個自動化對等個體相關聯的項目目前是否有鍵盤焦點。

(繼承來源 AutomationPeer)
HasKeyboardFocusCore()

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

(繼承來源 AutomationPeer)
InvalidatePeer()

觸發 AutomationPeer 主要屬性的重新計算,並在屬性變更時對自動化客戶端引發 PropertyChanged 通知。

(繼承來源 AutomationPeer)
IsContentElement()

取得值,這個值表示與此 Automation Peer 相關聯的項目是否包含呈現給使用者的資料。

(繼承來源 AutomationPeer)
IsContentElementCore()

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

(繼承來源 AutomationPeer)
IsControlElement()

取得值,這個值表示使用者是否將專案視為互動式或參與 GUI 中控件的邏輯結構。

(繼承來源 AutomationPeer)
IsControlElementCore()

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

(繼承來源 AutomationPeer)
IsDataValidForForm()

取得布爾值,指出輸入或選取的值是否對與自動化專案相關聯的表單規則有效。

(繼承來源 AutomationPeer)
IsDataValidForFormCore()

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

(繼承來源 AutomationPeer)
IsDialog()

取得值,這個值表示與此自動化對等相關聯的專案是否為對話框視窗。

(繼承來源 AutomationPeer)
IsDialogCore()

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

(繼承來源 AutomationPeer)
IsEnabled()

取得值,這個值表示與此自動化對等個體關聯的項目是否支援互動。

(繼承來源 AutomationPeer)
IsEnabledCore()

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

(繼承來源 AutomationPeer)
IsKeyboardFocusable()

取得值,這個值表示項目是否可以接受鍵盤焦點。

(繼承來源 AutomationPeer)
IsKeyboardFocusableCore()

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

(繼承來源 AutomationPeer)
IsOffscreen()

取得值,這個值表示項目是否不在螢幕上。

(繼承來源 AutomationPeer)
IsOffscreenCore()

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

(繼承來源 AutomationPeer)
IsPassword()

取得值,這個值表示項目是否包含敏感性內容。

(繼承來源 AutomationPeer)
IsPasswordCore()

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

(繼承來源 AutomationPeer)
IsPeripheral()

取得布爾值,指出自動化專案是否代表周邊UI。

(繼承來源 AutomationPeer)
IsPeripheralCore()

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

(繼承來源 AutomationPeer)
IsRequiredForForm()

取得值,這個值表示與此對等個體關聯的項目在表單上是否為必填項。

(繼承來源 AutomationPeer)
IsRequiredForFormCore()

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

(繼承來源 AutomationPeer)
Navigate(AutomationNavigationDirection)

取得UI自動化樹狀結構內指定方向的專案。

(繼承來源 AutomationPeer)
NavigateCore(AutomationNavigationDirection)

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

(繼承來源 AutomationPeer)
PeerFromProvider(IRawElementProviderSimple)

取得指定之 IRawElementProviderSimple Proxy 的 AutomationPeer

(繼承來源 AutomationPeer)
ProviderFromPeer(AutomationPeer)

取得指定 AutomationPeerIRawElementProviderSimple Proxy。

(繼承來源 AutomationPeer)
RaiseAutomationEvent(AutomationEvents)

引發自動化事件。

(繼承來源 AutomationPeer)
RaiseNotificationEvent(AutomationNotificationKind, AutomationNotificationProcessing, String, String)

起始通知事件。

(繼承來源 AutomationPeer)
RaisePropertyChangedEvent(AutomationProperty, Object, Object)

引發事件,通知自動化用戶端已變更屬性值。

(繼承來源 AutomationPeer)
RaiseStructureChangedEvent(AutomationStructureChangeType, AutomationPeer)

引發事件,通知 Microsoft 使用者介面自動化 核心樹狀結構已變更。

(繼承來源 AutomationPeer)
RaiseTextEditTextChangedEvent(AutomationTextEditChangeType, IVectorView<String>)

引發事件,通知 Microsoft 使用者介面自動化 核心文字控件已以程序設計方式變更文字。

(繼承來源 AutomationPeer)
ReadLocalValue(DependencyProperty)

如果已設定本機值,則傳回相依性屬性的本機值。

(繼承來源 DependencyObject)
RegisterPropertyChangedCallback(DependencyProperty, DependencyPropertyChangedCallback)

註冊通知函式,以接聽此 DependencyObject 實例上特定 DependencyProperty 的變更。

(繼承來源 DependencyObject)
SetFocus()

對與此自動化對等個體關聯的項目設定鍵盤焦點。

(繼承來源 AutomationPeer)
SetFocusCore()

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

(繼承來源 AutomationPeer)
SetParent(AutomationPeer)

設定 AutomationPeer ,這是這個 AutomationPeer 的父代。

(繼承來源 AutomationPeer)
SetValue(DependencyProperty, Object)

DependencyObject 上設定相依性屬性的本機值。

(繼承來源 DependencyObject)
ShowContextMenu()

顯示擁有者元素的可用操作功能表。

(繼承來源 AutomationPeer)
ShowContextMenuCore()

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

(繼承來源 AutomationPeer)
UnregisterPropertyChangedCallback(DependencyProperty, Int64)

取消先前透過呼叫 RegisterPropertyChangedCallback 註冊的變更通知。

(繼承來源 DependencyObject)

適用於

另請參閱