FrameworkElementAutomationPeer 類別

定義

公開 FrameworkElement 衍生類型 (包括 Microsoft UI 自動化) 的所有控制項。

/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 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(Windows.Foundation.UniversalApiContract), 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
衍生
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

範例

此範例顯示從 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
    Public Class MediaContainerAP
        Inherits FrameworkElementAutomationPeer
        Implements IRangeValueProvider
        Implements IToggleProvider
' nondefault ctors omitted ...

        Protected Overrides Function GetPatternCore(patternInterface__1 As PatternInterface) As Object
            If patternInterface__1 = PatternInterface.RangeValue Then
                Return Me
            ElseIf patternInterface__1 = PatternInterface.Toggle Then
                Return Me
            End If
            Return Nothing
        End Function


        Protected Overrides Function GetAutomationControlTypeCore() As AutomationControlType
            Return AutomationControlType.Group
        End Function

        Protected Overrides Function GetLocalizedControlTypeCore() as String
            Return "Video"
        End Function

        Protected Overrides Function GetClassNameCore() As String
            Return "MediaElementContainer"
        End Function
' pattern implementation omitted ...
End Class

備註

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

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

除了 Core 覆寫之外,FrameworkElementAutomationPeer 還有兩個靜態公用程式方法,可用於從控制程式代碼內取得對等控制碼,或從 Microsoft UI 自動化支援的專案容器對等產生專案對等互連。 這些節點為:

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

FrameworkElementAutomationPeer 衍生類別

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

建構函式

FrameworkElementAutomationPeer(FrameworkElement)

初始化 FrameworkElementAutomationPeer 類別的新實例。

屬性

Dispatcher

取得與此物件相關聯的 CoreDispatcherCoreDispatcher代表可以存取 UI 執行緒上DependencyObject的功能,即使程式碼是由非 UI 執行緒起始也一樣。

(繼承來源 DependencyObject)
EventsSource

取得或設定 AutomationPeer,這個 AutomationPeer 會回報給自動化用戶端作為來自這個 AutomationPeer的所有事件來源。 請參閱<備註>。

(繼承來源 AutomationPeer)
Owner

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

方法

ClearValue(DependencyProperty)

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

(繼承來源 DependencyObject)
CreatePeerForElement(UIElement)

為指定的UIElement建立FrameworkElementAutomationPeer

FromElement(UIElement)

會傳回指定之 UIElementFrameworkElementAutomationPeer

GetAcceleratorKey()

取得與 UI 自動化對等相關聯之 物件的快速鍵組合。

(繼承來源 AutomationPeer)
GetAcceleratorKeyCore()

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

(繼承來源 AutomationPeer)
GetAccessKey()

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

(繼承來源 AutomationPeer)
GetAccessKeyCore()

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

(繼承來源 AutomationPeer)
GetAnimationBaseValue(DependencyProperty)

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

(繼承來源 DependencyObject)
GetAnnotations()

取得目前自動化對等之 UI 自動化注釋清單的參考。

(繼承來源 AutomationPeer)
GetAnnotationsCore()

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

(繼承來源 AutomationPeer)
GetAutomationControlType()

取得與 UI 自動化對等相關聯之專案的控制項類型。

(繼承來源 AutomationPeer)
GetAutomationControlTypeCore()

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

(繼承來源 AutomationPeer)
GetAutomationId()

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

(繼承來源 AutomationPeer)
GetAutomationIdCore()

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

(繼承來源 AutomationPeer)
GetBoundingRectangle()

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

(繼承來源 AutomationPeer)
GetBoundingRectangleCore()

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

(繼承來源 AutomationPeer)
GetChildren()

取得在使用者介面自動化樹狀結構中表示為自動化對等之立即子項目的子項目集合。

(繼承來源 AutomationPeer)
GetChildrenCore()

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

(繼承來源 AutomationPeer)
GetClassName()

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

(繼承來源 AutomationPeer)
GetClassNameCore()

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

(繼承來源 AutomationPeer)
GetClickablePoint()

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

(繼承來源 AutomationPeer)
GetClickablePointCore()

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

(繼承來源 AutomationPeer)
GetControlledPeers()

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

(繼承來源 AutomationPeer)
GetControlledPeersCore()

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

(繼承來源 AutomationPeer)
GetCulture()

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

(繼承來源 AutomationPeer)
GetCultureCore()

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

(繼承來源 AutomationPeer)
GetDescribedByCore()

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

(繼承來源 AutomationPeer)
GetElementFromPoint(Point)

從指定的點取得專案。

(繼承來源 AutomationPeer)
GetElementFromPointCore(Point)

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

(繼承來源 AutomationPeer)
GetFlowsFromCore()

當 Microsoft UI 自動化用戶端呼叫 GetFlowsFrom 或對等的 Microsoft UI 自動化用戶端 API 時,提供對等的行為。

(繼承來源 AutomationPeer)
GetFlowsToCore()

當 Microsoft UI 自動化用戶端呼叫 GetFlowsTo 或對等的 Microsoft UI 自動化用戶端 API 時,提供對等的行為。

(繼承來源 AutomationPeer)
GetFocusedElement()

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

(繼承來源 AutomationPeer)
GetFocusedElementCore()

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

(繼承來源 AutomationPeer)
GetFullDescription()

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

(繼承來源 AutomationPeer)
GetFullDescriptionCore()

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

(繼承來源 AutomationPeer)
GetHeadingLevel()

取得與這個自動化對等相關聯之 UI 自動化專案的標題層級。

(繼承來源 AutomationPeer)
GetHeadingLevelCore()

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

(繼承來源 AutomationPeer)
GetHelpText()

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

(繼承來源 AutomationPeer)
GetHelpTextCore()

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

(繼承來源 AutomationPeer)
GetItemStatus()

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

(繼承來源 AutomationPeer)
GetItemStatusCore()

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

(繼承來源 AutomationPeer)
GetItemType()

取得字串,描述專案所代表的專案類型。

(繼承來源 AutomationPeer)
GetItemTypeCore()

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

(繼承來源 AutomationPeer)
GetLabeledBy()

取得以 元素為目標之 UIElementAutomationPeer

(繼承來源 AutomationPeer)
GetLabeledByCore()

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

(繼承來源 AutomationPeer)
GetLandmarkType()

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

(繼承來源 AutomationPeer)
GetLandmarkTypeCore()

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

(繼承來源 AutomationPeer)
GetLevel()

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

(繼承來源 AutomationPeer)
GetLevelCore()

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

(繼承來源 AutomationPeer)
GetLiveSetting()

取得與 UI 自動化對等相關聯之物件的即時設定通知行為資訊。

(繼承來源 AutomationPeer)
GetLiveSettingCore()

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

(繼承來源 AutomationPeer)
GetLocalizedControlType()

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

(繼承來源 AutomationPeer)
GetLocalizedControlTypeCore()

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

(繼承來源 AutomationPeer)
GetLocalizedLandmarkType()

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

(繼承來源 AutomationPeer)
GetLocalizedLandmarkTypeCore()

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

(繼承來源 AutomationPeer)
GetName()

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

(繼承來源 AutomationPeer)
GetNameCore()

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

(繼承來源 AutomationPeer)
GetOrientation()

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

(繼承來源 AutomationPeer)
GetOrientationCore()

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

(繼承來源 AutomationPeer)
GetParent()

取得 AutomationPeer,這個 AutomationPeer 是這個 AutomationPeer的父代。

(繼承來源 AutomationPeer)
GetPattern(PatternInterface)

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

(繼承來源 AutomationPeer)
GetPatternCore(PatternInterface)

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

(繼承來源 AutomationPeer)
GetPeerFromPoint(Point)

從指定的點取得 AutomationPeer

(繼承來源 AutomationPeer)
GetPeerFromPointCore(Point)

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

(繼承來源 AutomationPeer)
GetPositionInSet()

傳回與自動化對等相關聯之元素集合中序數位置的 1 整數。

(繼承來源 AutomationPeer)
GetPositionInSetCore()

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

(繼承來源 AutomationPeer)
GetSizeOfSet()

針對與自動化對等相關聯之元素所在的集合大小,傳回以 1 為起始的整數。

(繼承來源 AutomationPeer)
GetSizeOfSetCore()

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

(繼承來源 AutomationPeer)
GetValue(DependencyProperty)

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

(繼承來源 DependencyObject)
HasKeyboardFocus()

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

(繼承來源 AutomationPeer)
HasKeyboardFocusCore()

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

(繼承來源 AutomationPeer)
InvalidatePeer()

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

(繼承來源 AutomationPeer)
IsContentElement()

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

(繼承來源 AutomationPeer)
IsContentElementCore()

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

(繼承來源 AutomationPeer)
IsControlElement()

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

(繼承來源 AutomationPeer)
IsControlElementCore()

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

(繼承來源 AutomationPeer)
IsDataValidForForm()

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

(繼承來源 AutomationPeer)
IsDataValidForFormCore()

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

(繼承來源 AutomationPeer)
IsDialog()

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

(繼承來源 AutomationPeer)
IsDialogCore()

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

(繼承來源 AutomationPeer)
IsEnabled()

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

(繼承來源 AutomationPeer)
IsEnabledCore()

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

(繼承來源 AutomationPeer)
IsKeyboardFocusable()

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

(繼承來源 AutomationPeer)
IsKeyboardFocusableCore()

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

(繼承來源 AutomationPeer)
IsOffscreen()

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

(繼承來源 AutomationPeer)
IsOffscreenCore()

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

(繼承來源 AutomationPeer)
IsPassword()

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

(繼承來源 AutomationPeer)
IsPasswordCore()

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

(繼承來源 AutomationPeer)
IsPeripheral()

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

(繼承來源 AutomationPeer)
IsPeripheralCore()

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

(繼承來源 AutomationPeer)
IsRequiredForForm()

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

(繼承來源 AutomationPeer)
IsRequiredForFormCore()

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

(繼承來源 AutomationPeer)
Navigate(AutomationNavigationDirection)

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

(繼承來源 AutomationPeer)
NavigateCore(AutomationNavigationDirection)

當 Microsoft UI 自動化用戶端呼叫 Navigate 或對等的 Microsoft UI 自動化用戶端 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 UI 自動化核心樹狀結構已變更。

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

引發事件,通知 Microsoft UI 自動化核心文字控制項已以程式設計方式變更文字。

(繼承來源 AutomationPeer)
ReadLocalValue(DependencyProperty)

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

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

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

(繼承來源 DependencyObject)
SetFocus()

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

(繼承來源 AutomationPeer)
SetFocusCore()

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

(繼承來源 AutomationPeer)
SetParent(AutomationPeer)

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

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

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

(繼承來源 DependencyObject)
ShowContextMenu()

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

(繼承來源 AutomationPeer)
ShowContextMenuCore()

當 Microsoft UI 自動化用戶端呼叫 ShowCoNtextMenu 或對等的 Microsoft UI 自動化用戶端 API 時,提供對等的行為。

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

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

(繼承來源 DependencyObject)

適用於

另請參閱