ItemAutomationPeer 類別

定義

Items 集合中的資料項目公開至使用者介面自動化。

public ref class ItemAutomationPeer abstract : System::Windows::Automation::Peers::AutomationPeer
public ref class ItemAutomationPeer abstract : System::Windows::Automation::Peers::AutomationPeer, System::Windows::Automation::Provider::IVirtualizedItemProvider
public abstract class ItemAutomationPeer : System.Windows.Automation.Peers.AutomationPeer
public abstract class ItemAutomationPeer : System.Windows.Automation.Peers.AutomationPeer, System.Windows.Automation.Provider.IVirtualizedItemProvider
type ItemAutomationPeer = class
    inherit AutomationPeer
type ItemAutomationPeer = class
    inherit AutomationPeer
    interface IVirtualizedItemProvider
Public MustInherit Class ItemAutomationPeer
Inherits AutomationPeer
Public MustInherit Class ItemAutomationPeer
Inherits AutomationPeer
Implements IVirtualizedItemProvider
繼承
衍生
實作

備註

不是 UIElement 類型的資料項目沒有子系;不過,它們可以有 UIElement 樹狀結構以及對應的 UI 自動化樹狀結構。

例如, ListBox 可以有包含資料項目的字串集合。 當這些專案由 視覺效果處理 ItemsControl 時, UIElement 會為其建立樹狀結構。 此樹狀結構可以有對應的 UI 自動化樹狀結構。 建立樹狀結構之後,WPF 會將 UIElement 樹狀結構合併成 UI 自動化樹狀結構。 ItemAutomationPeer 適用于其 UIElement 對應專案,如果存在,可取得樹狀結構的詳細資訊 UIElement

只有可見的資料項目,或更精確地說,對應的 UIElement 樹狀結構具有這種雙重原則。 沒有對應 UIElement 樹狀結構的非可見資料項目只有一個 ItemAutomationPeer

建構函式

ItemAutomationPeer(Object, ItemsControlAutomationPeer)

在透過衍生類別的建構函式呼叫時,提供基本類別值的初始設定。

屬性

Dispatcher

取得與這個 Dispatcher 關聯的 DispatcherObject

(繼承來源 DispatcherObject)
EventsSource

取得或設定 AutomationPeer,其報告至自動化用戶端,作為所有來自此 AutomationPeer 的事件來源。

(繼承來源 AutomationPeer)
IsHwndHost

取得值,這個值表示與 WPF Windows Presentation Foundation (WPF) 中與此 AutomationPeer 主機 hwnds 相關聯的專案。

(繼承來源 AutomationPeer)
Item

取得與這個 Items 相關聯之 ItemAutomationPeer 集合中的資料項目。

ItemsControlAutomationPeer

取得 ItemsControlAutomationPeer,其與保留 ItemsControl 集合的 Items 相關聯。

方法

CheckAccess()

判斷呼叫的執行是否可以存取這個 DispatcherObject

(繼承來源 DispatcherObject)
Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetAcceleratorKey()

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

(繼承來源 AutomationPeer)
GetAcceleratorKeyCore()

取得 UIElement 的快速鍵,它對應至與這個 ItemAutomationPeer 建立關聯之 Items 集合中的資料項目。

GetAccessKey()

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

(繼承來源 AutomationPeer)
GetAccessKeyCore()

取得 UIElement 的存取金鑰,該金鑰對應至與這個 ItemAutomationPeer 建立關聯之 Items 集合中的資料項目。

GetAutomationControlType()

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

(繼承來源 AutomationPeer)
GetAutomationControlTypeCore()

在衍生類別中覆寫時,被 GetAutomationControlType() 呼叫。

(繼承來源 AutomationPeer)
GetAutomationId()

取得與自動化對等個體相關聯項目的 AutomationId

(繼承來源 AutomationPeer)
GetAutomationIdCore()

取得唯一識別 UIElement 的字串,這個類別對應至與這個 Items 相關聯之 ItemAutomationPeer 集合中的資料項目。

GetBoundingRectangle()

取得 Rect 物件,這個物件表示與自動化對等個體關聯之項目的螢幕座標。

(繼承來源 AutomationPeer)
GetBoundingRectangleCore()

取得 Rect,表示指定之 UIElement 的週框 (Bounding Rectangle)。

GetChildren()

取得 GetChildren() 項目的集合,這些項目在使用者介面自動化樹狀目錄中是表示為自動化對等個體的直系子項目。

(繼承來源 AutomationPeer)
GetChildrenCore()

取得 UIElement 的子項目集合,這個類別對應至與這個 Items 相關聯之 ItemAutomationPeer 集合中的資料項目。

GetClassName()

取得與 AutomationControlType 一起使用的名稱,以區分此 AutomationPeer 所表示的控制項。

(繼承來源 AutomationPeer)
GetClassNameCore()

在衍生類別中覆寫時,被 GetClassName() 呼叫。

(繼承來源 AutomationPeer)
GetClickablePoint()

取得與自動化對等個體關聯之項目上的 Point,該對等個體回應滑鼠點選動作。

(繼承來源 AutomationPeer)
GetClickablePointCore()

取得 Point,表示位於指定之 UIElement 上的可按區域。

GetControlledPeers()

提供使用者介面自動化受此 AutomationPeer 影響或控制的項目清單。

(繼承來源 AutomationPeer)
GetControlledPeersCore()

在衍生類別中覆寫時,提供 UI 自動化及受此 AutomationPeer 影響或控制的元素清單。

(繼承來源 AutomationPeer)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetHeadingLevel()

Items 集合中的資料項目公開至使用者介面自動化。

(繼承來源 AutomationPeer)
GetHeadingLevelCore()

Items 集合中的資料項目公開至使用者介面自動化。

GetHeadingLevelCore()

Items 集合中的資料項目公開至使用者介面自動化。

(繼承來源 AutomationPeer)
GetHelpText()

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

(繼承來源 AutomationPeer)
GetHelpTextCore()

取得描述 UIElement 之功能的字串,這個類別會對應至與這個 Items 相關聯之 ItemAutomationPeer 集合中的資料項目。

GetHostRawElementProviderCore()

告訴使用者介面自動化在 UI 自動化樹狀結構中的位置,放置 hwnd 由Windows Presentation Foundation (WPF) 元素裝載的 。

(繼承來源 AutomationPeer)
GetItemStatus()

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

(繼承來源 AutomationPeer)
GetItemStatusCore()

取得字串,表示指定之 UIElement 的視覺狀態。

GetItemType()

取得字串,這個字串描述物件所表示的項目類型。

(繼承來源 AutomationPeer)
GetItemTypeCore()

取得人們可解讀的字串,其中包含指定之 UIElement 所表示的項目型別。

GetLabeledBy()

取得以該項目為目標之 LabelAutomationPeer

(繼承來源 AutomationPeer)
GetLabeledByCore()

取得將指定的 AutomationPeer 做為目標之 LabelUIElement

GetLiveSetting()

取得與此 Automation Peer 建立關聯的即時區域通知特性。

(繼承來源 AutomationPeer)
GetLiveSettingCore()

取得 UIElement 的即時區域通知特性,前者對應至與此 ItemAutomationPeer 物件建立關聯之 Items 集合中的資料項目。

GetLiveSettingCore()

於衍生類別中覆寫時,傳回即時區域的通知特性。 由 GetLiveSetting() 方法呼叫。

(繼承來源 AutomationPeer)
GetLocalizedControlType()

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

(繼承來源 AutomationPeer)
GetLocalizedControlTypeCore()

在衍生類別中覆寫時,被 GetLocalizedControlType() 呼叫。

(繼承來源 AutomationPeer)
GetName()

取得文字,這個文字描述與此自動化對等個體關聯的項目。

(繼承來源 AutomationPeer)
GetNameCore()

取得 UIElement 的文字標籤,這個類別會對應至與這個 Items 相關聯之 ItemAutomationPeer 集合中的資料項目。

GetOrientation()

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

(繼承來源 AutomationPeer)
GetOrientationCore()

取得值,這個值表示指定的 UIElement 是否依特定方向配置。

GetParent()

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

(繼承來源 AutomationPeer)
GetPattern(PatternInterface)

傳回物件,該物件支援與這個自動化對等個體關聯之項目的特定控制項模式。

GetPattern(PatternInterface)

在衍生類別中覆寫時,取得與指定之 PatternInterface 相關聯的控制項模式。

(繼承來源 AutomationPeer)
GetPeerFromPoint(Point)

從指定之點取得 AutomationPeer

(繼承來源 AutomationPeer)
GetPeerFromPointCore(Point)

在衍生類別中覆寫時,從 GetPeerFromPoint(Point) 呼叫。

(繼承來源 AutomationPeer)
GetPositionInSet()

嘗試取得 PositionInSet 屬性的值。

(繼承來源 AutomationPeer)
GetPositionInSetCore()

取得這個項目在集合中的位置。

GetPositionInSetCore()

在衍生類別中覆寫時,提供使用者介面自動化描述此項目在群組或集合中佔用位置之以一為起始的整數值。

(繼承來源 AutomationPeer)
GetSizeOfSet()

嘗試取得 SizeOfSet 屬性的值。

(繼承來源 AutomationPeer)
GetSizeOfSetCore()

取得包含這個項目的集合大小。

GetSizeOfSetCore()

在衍生類別中覆寫時,提供 UI 自動化及此元素所屬群組或集合的大小。

(繼承來源 AutomationPeer)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
HasKeyboardFocus()

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

(繼承來源 AutomationPeer)
HasKeyboardFocusCore()

取得值,這個值表示指定的 UIElement 目前是否有鍵盤輸入焦點。

InvalidatePeer()

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

(繼承來源 AutomationPeer)
IsContentElement()

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

(繼承來源 AutomationPeer)
IsContentElementCore()

取得值,這個值表示指定的 UIElement 是否包含對使用者呈現的資料。

IsControlElement()

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

(繼承來源 AutomationPeer)
IsControlElementCore()

取得值,這個值表示與這個 UIElement 相關聯的 ItemAutomationPeer 是否會由使用者辨識為互動式。

IsDialog()

Items 集合中的資料項目公開至使用者介面自動化。

(繼承來源 AutomationPeer)
IsDialogCore()

Items 集合中的資料項目公開至使用者介面自動化。

IsDialogCore()

Items 集合中的資料項目公開至使用者介面自動化。

(繼承來源 AutomationPeer)
IsEnabled()

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

(繼承來源 AutomationPeer)
IsEnabledCore()

取得值,這個值表示指定的 UIElement 是否可以接收及傳送事件。

IsKeyboardFocusable()

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

(繼承來源 AutomationPeer)
IsKeyboardFocusableCore()

取得值,這個值表示指定的 UIElement 是否可以接受鍵盤焦點。

IsOffscreen()

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

(繼承來源 AutomationPeer)
IsOffscreenCore()

取得值,這個值表示指定的 UIElement 是否不在螢幕上。

IsPassword()

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

(繼承來源 AutomationPeer)
IsPasswordCore()

取得值,這個值表示指定的 UIElement 是否包含受保護的內容。

IsRequiredForForm()

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

(繼承來源 AutomationPeer)
IsRequiredForFormCore()

取得值,這個值表示指定的 UIElement 是否為表單上必須填寫的項目。

MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
PeerFromProvider(IRawElementProviderSimple)

取得指定之 AutomationPeer Proxy 的 IRawElementProviderSimple

(繼承來源 AutomationPeer)
ProviderFromPeer(AutomationPeer)

取得所指定之 IRawElementProviderSimpleAutomationPeer

(繼承來源 AutomationPeer)
RaiseAsyncContentLoadedEvent(AsyncContentLoadedEventArgs)

AutomationPeer 呼叫以引發 AsyncContentLoadedEvent 事件。

(繼承來源 AutomationPeer)
RaiseAutomationEvent(AutomationEvents)

引發自動化事件。

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

Items 集合中的資料項目公開至使用者介面自動化。

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

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

(繼承來源 AutomationPeer)
ResetChildrenCache()

呼叫 GetChildrenCore(),以同步方式重設子項目的樹狀結構。

(繼承來源 AutomationPeer)
SetFocus()

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

(繼承來源 AutomationPeer)
SetFocusCore()

在指定的 UIElement 上設定鍵盤輸入焦點。 UIElement 會對應至與 Items 相關聯之 ItemAutomationPeer 集合中的資料項目。

ToString()

傳回代表目前物件的字串。

(繼承來源 Object)
VerifyAccess()

請強制執行可以存取這個 DispatcherObject 的呼叫執行緒。

(繼承來源 DispatcherObject)

明確介面實作

IVirtualizedItemProvider.Realize()

允許將虛擬項目當做使用者介面自動化項目完整存取。

適用於