DocumentAutomationPeer 類別

定義

Document 控制項類型公開至使用者介面自動化。

public ref class DocumentAutomationPeer : System::Windows::Automation::Peers::ContentTextAutomationPeer
public class DocumentAutomationPeer : System.Windows.Automation.Peers.ContentTextAutomationPeer
type DocumentAutomationPeer = class
    inherit ContentTextAutomationPeer
Public Class DocumentAutomationPeer
Inherits ContentTextAutomationPeer
繼承

備註

DocumentAutomationPeer表示檔和支援 TextPattern 。 或 之類的 FixedDocumentFlowDocument 物件可以包含内嵌物件,例如影像和超連結。 一開始,當您嘗試取得檔的子項目時, DocumentAutomationPeer.GetChildrenCore 不會傳回内嵌物件。 若要取得內嵌專案,請從 TextPattern 取得 TextPatternRange ,並呼叫 TextPatternRange.GetChildren 。 呼叫 之後 TextPatternRange.GetChildren ,所傳 DocumentAutomationPeer.GetChildrenCore 回的任何 專案 TextPatternRange

注意

除非您知道檔是 FlowDocument ,否則您不應該在 屬性上 TextPattern.DocumentRange 呼叫 GetChildren 。 如果檔是從網路位置載入,請在整個檔上呼叫 GetChildren 會耗用大量資源。 相反地,您應該使用其中 TextPattern 一個方法,傳回 TextPatternRange 代表檔的一部分。

建構函式

DocumentAutomationPeer(FrameworkContentElement)

初始化 DocumentAutomationPeer 類別的新執行個體。

屬性

Dispatcher

取得與這個 Dispatcher 關聯的 DispatcherObject

(繼承來源 DispatcherObject)
EventsSource

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

(繼承來源 AutomationPeer)
IsHwndHost

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

(繼承來源 AutomationPeer)
Owner

取得與 ContentElementAutomationPeer 相關聯的 ContentElement

(繼承來源 ContentElementAutomationPeer)

方法

CheckAccess()

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

(繼承來源 DispatcherObject)
Equals(Object)

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

(繼承來源 Object)
GetAcceleratorKey()

取得與使用者介面自動化對等相關聯之專案的快速鍵組合。

(繼承來源 AutomationPeer)
GetAcceleratorKeyCore()

取得與這個 ContentElementAutomationPeer 相關聯之元素的快速鍵。 由 GetAcceleratorKey() 呼叫。

(繼承來源 ContentElementAutomationPeer)
GetAccessKey()

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

(繼承來源 AutomationPeer)
GetAccessKeyCore()

取得與這個 ContentElementAutomationPeer 相關聯之 ContentElement 的便捷鍵。 由 GetAccessKey() 呼叫。

(繼承來源 ContentElementAutomationPeer)
GetAutomationControlType()

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

(繼承來源 AutomationPeer)
GetAutomationControlTypeCore()

取得與此 DocumentAutomationPeer 建立關聯之控制項的控制項類型。 這個方法是由 GetAutomationControlType() 所呼叫。

GetAutomationId()

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

(繼承來源 AutomationPeer)
GetAutomationIdCore()

取得唯一識別與這個 ContentElementAutomationPeer 相關聯之 FrameworkContentElement 的字串。 這個方法是由 GetAutomationId() 所呼叫。

(繼承來源 FrameworkContentElementAutomationPeer)
GetBoundingRectangle()

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

(繼承來源 AutomationPeer)
GetBoundingRectangleCore()

取得 Rect,表示與這個 DocumentAutomationPeer 相關聯之項目的螢幕座標。 這個方法是由 GetBoundingRectangle() 所呼叫。

GetChildren()

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

(繼承來源 AutomationPeer)
GetChildrenCore()

取得與這個 FrameworkContentElement 相關聯之 DocumentAutomationPeer 的子項目集合。 這個方法是由 GetChildren() 所呼叫。

GetClassName()

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

(繼承來源 AutomationPeer)
GetClassNameCore()

取得與此 FrameworkContentElement 相關聯之 DocumentAutomationPeer 的名稱。 這個方法是由 GetClassName() 所呼叫。

GetClickablePoint()

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

(繼承來源 AutomationPeer)
GetClickablePointCore()

取得 Point,其代表位於與這個 ContentElementAutomationPeer 相關聯之 FrameworkContentElement 的可點選空間。 這個方法是由 GetClickablePoint() 所呼叫。

GetControlledPeers()

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

(繼承來源 AutomationPeer)
GetControlledPeersCore()

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

(繼承來源 AutomationPeer)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetHeadingLevel()

Document 控制項類型公開至使用者介面自動化。

(繼承來源 AutomationPeer)
GetHeadingLevelCore()

Document 控制項類型公開至使用者介面自動化。

(繼承來源 ContentElementAutomationPeer)
GetHelpText()

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

(繼承來源 AutomationPeer)
GetHelpTextCore()

取得描述與這個 ContentElementAutomationPeer 相關聯的 FrameworkContentElement 功能的字串。 這個方法是由 GetHelpText() 所呼叫。

(繼承來源 FrameworkContentElementAutomationPeer)
GetHostRawElementProviderCore()

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

(繼承來源 AutomationPeer)
GetItemStatus()

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

(繼承來源 AutomationPeer)
GetItemStatusCore()

取得字串,其傳達與 ContentElementAutomationPeer 相關聯之 ContentElement 的視覺狀態。 由 GetItemStatus() 呼叫。

(繼承來源 ContentElementAutomationPeer)
GetItemType()

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

(繼承來源 AutomationPeer)
GetItemTypeCore()

取得人類可讀的字串,其中包含與 ContentElementAutomationPeer 表示法相關聯的 ContentElement 的項目類型。 由 GetItemType() 呼叫。

(繼承來源 ContentElementAutomationPeer)
GetLabeledBy()

取得以該項目為目標之 LabelAutomationPeer

(繼承來源 AutomationPeer)
GetLabeledByCore()

取得 LabelLabelAutomationPeer,目標是與此 FrameworkContentElementAutomationPeer 相關聯的 FrameworkContentElement 這個方法是由 GetLabeledBy() 所呼叫。

(繼承來源 FrameworkContentElementAutomationPeer)
GetLiveSetting()

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

(繼承來源 AutomationPeer)
GetLiveSettingCore()

取得與此 ContentElementAutomationPeer 建立關聯的 ContentElement 即時區域通知特性。 由 GetLiveSetting() 呼叫。

(繼承來源 ContentElementAutomationPeer)
GetLocalizedControlType()

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

(繼承來源 AutomationPeer)
GetLocalizedControlTypeCore()

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

(繼承來源 AutomationPeer)
GetName()

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

(繼承來源 AutomationPeer)
GetNameCore()

取得與這個 ContentElementAutomationPeer 相關聯之 ContentElement 的文字標籤。 由 GetName() 呼叫。

(繼承來源 ContentElementAutomationPeer)
GetOrientation()

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

(繼承來源 AutomationPeer)
GetOrientationCore()

取得值,指出是否依特定方向配置與這個 ContentElementAutomationPeer 相關聯的 ContentElement版面。 由 GetOrientation() 呼叫。

(繼承來源 ContentElementAutomationPeer)
GetParent()

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

(繼承來源 AutomationPeer)
GetPattern(PatternInterface)

取得與此 DocumentAutomationPeer 相關聯之 FrameworkContentElement 的控制項模式。

GetPeerFromPoint(Point)

從指定之點取得 AutomationPeer

(繼承來源 AutomationPeer)
GetPeerFromPointCore(Point)

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

(繼承來源 AutomationPeer)
GetPositionInSet()

嘗試取得 PositionInSet 屬性的值。

(繼承來源 AutomationPeer)
GetPositionInSetCore()

PositionInSetProperty讀取並傳回附加屬性的值 PositionInSet

(繼承來源 ContentElementAutomationPeer)
GetSizeOfSet()

嘗試取得 SizeOfSet 屬性的值。

(繼承來源 AutomationPeer)
GetSizeOfSetCore()

SizeOfSetProperty讀取並傳回附加屬性的值 SizeOfSet

(繼承來源 ContentElementAutomationPeer)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
HasKeyboardFocus()

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

(繼承來源 AutomationPeer)
HasKeyboardFocusCore()

取得值,指出與這個 ContentElementAutomationPeer 相關聯的 ContentElement 目前是否具有鍵盤輸入焦點。 由 HasKeyboardFocus() 呼叫。

(繼承來源 ContentElementAutomationPeer)
InvalidatePeer()

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

(繼承來源 AutomationPeer)
IsContentElement()

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

(繼承來源 AutomationPeer)
IsContentElementCore()

取得值,指出與這個 ContentElementAutomationPeer 相關聯的 ContentElement 是否為包含使用者所見資料的項目。 由 IsContentElement() 呼叫。

(繼承來源 ContentElementAutomationPeer)
IsControlElement()

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

(繼承來源 AutomationPeer)
IsControlElementCore()

取得或設定值,這個值表示 FrameworkContentElement 與這個 DocumentAutomationPeer 相關聯的 是否由使用者視為互動式,或者使用者可能會瞭解 FrameworkContentElement ,以參與 GUI 中控制項的邏輯結構。 這個方法是由 IsControlElement() 所呼叫。

IsDialog()

Document 控制項類型公開至使用者介面自動化。

(繼承來源 AutomationPeer)
IsDialogCore()

Document 控制項類型公開至使用者介面自動化。

(繼承來源 ContentElementAutomationPeer)
IsEnabled()

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

(繼承來源 AutomationPeer)
IsEnabledCore()

取得值,表示這個自動化對等可以接收和傳送事件給相關聯的項目。 由 IsEnabled() 呼叫。

(繼承來源 ContentElementAutomationPeer)
IsKeyboardFocusable()

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

(繼承來源 AutomationPeer)
IsKeyboardFocusableCore()

取得值,表示與這個 ContentElementAutomationPeer 相關聯的 ContentElement 是否可接受鍵盤焦點。 由 IsKeyboardFocusable() 呼叫。

(繼承來源 ContentElementAutomationPeer)
IsOffscreen()

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

(繼承來源 AutomationPeer)
IsOffscreenCore()

取得值,這個值表示與這個 FrameworkContentElement 相關聯的 DocumentAutomationPeer 是否不在螢幕上。 這個方法是由 IsOffscreen() 所呼叫。

IsPassword()

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

(繼承來源 AutomationPeer)
IsPasswordCore()

取得值,這個值表示與此 ContentElementAutomationPeer 相關聯的 ContentElement 是否包含受保護的內容。 由 IsPassword() 呼叫。

(繼承來源 ContentElementAutomationPeer)
IsRequiredForForm()

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

(繼承來源 AutomationPeer)
IsRequiredForFormCore()

取得值,指出表單上是否需要填寫與這個 ContentElementAutomationPeer 相關聯的 ContentElement。 由 IsRequiredForForm() 呼叫。

(繼承來源 ContentElementAutomationPeer)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
PeerFromProvider(IRawElementProviderSimple)

取得指定之 AutomationPeer Proxy 的 IRawElementProviderSimple

(繼承來源 AutomationPeer)
ProviderFromPeer(AutomationPeer)

取得所指定之 IRawElementProviderSimpleAutomationPeer

(繼承來源 AutomationPeer)
RaiseActiveTextPositionChangedEvent(TextPointer, TextPointer)

Document 控制項類型公開至使用者介面自動化。

(繼承來源 ContentTextAutomationPeer)
RaiseAsyncContentLoadedEvent(AsyncContentLoadedEventArgs)

AutomationPeer 呼叫以引發 AsyncContentLoadedEvent 事件。

(繼承來源 AutomationPeer)
RaiseAutomationEvent(AutomationEvents)

引發自動化事件。

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

Document 控制項類型公開至使用者介面自動化。

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

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

(繼承來源 AutomationPeer)
ResetChildrenCache()

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

(繼承來源 AutomationPeer)
SetFocus()

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

(繼承來源 AutomationPeer)
SetFocusCore()

設定與這個 ContentElementAutomationPeer 相關聯的 ContentElement 上的鍵盤輸入焦點。 由 SetFocus() 呼叫。

(繼承來源 ContentElementAutomationPeer)
ToString()

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

(繼承來源 Object)
VerifyAccess()

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

(繼承來源 DispatcherObject)

適用於

另請參閱