ContentElementAutomationPeer Class

Definition

向 UI 自动化公开 ContentElement 类型。Exposes ContentElement types to UI Automation.

public ref class ContentElementAutomationPeer : System::Windows::Automation::Peers::AutomationPeer
public class ContentElementAutomationPeer : System.Windows.Automation.Peers.AutomationPeer
type ContentElementAutomationPeer = class
    inherit AutomationPeer
Public Class ContentElementAutomationPeer
Inherits AutomationPeer
Inheritance
ContentElementAutomationPeer
Derived

Constructors

ContentElementAutomationPeer(ContentElement)

初始化 ContentElementAutomationPeer 类的新实例。Initializes a new instance of the ContentElementAutomationPeer class.

Properties

Dispatcher

获取与此 Dispatcher 关联的 DispatcherObjectGets the Dispatcher this DispatcherObject is associated with.

(Inherited from DispatcherObject)
EventsSource

获取或设置一个 AutomationPeer,它作为来自此 AutomationPeer 的所有事件的源报告给自动化客户端。Gets or sets an AutomationPeer that is reported to the automation client as a source for all the events that come from this AutomationPeer.

(Inherited from AutomationPeer)
IsHwndHost

获取一个值,该值指示与此 AutomationPeer 关联的元素是否承载 Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) 中的 hwndsGets a value that indicates whether the element that is associated with this AutomationPeer hosts hwnds in Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF).

(Inherited from AutomationPeer)
Owner

获取与此 ContentElementAutomationPeer 关联的 ContentElementGets the ContentElement that is associated with this ContentElementAutomationPeer.

Methods

CheckAccess()

确定调用线程是否可以访问此 DispatcherObjectDetermines whether the calling thread has access to this DispatcherObject.

(Inherited from DispatcherObject)
CreatePeerForElement(ContentElement)

为指定的 ContentElement 创建 ContentElementAutomationPeerCreates a ContentElementAutomationPeer for the specified ContentElement.

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
FromElement(ContentElement)

获取指定的 ContentElementAutomationPeerContentElementGets the ContentElementAutomationPeer for the specified ContentElement.

GetAcceleratorKey()

获取与 UI 自动化UI Automation 对等方关联的元素的加速键组合。Gets the accelerator key combinations for the element that is associated with the UI 自动化UI Automation peer.

(Inherited from AutomationPeer)
GetAcceleratorKeyCore()

获取与此 ContentElementAutomationPeer 关联的元素的加速键。Gets the accelerator key for the element associated with this ContentElementAutomationPeer. GetAcceleratorKey() 调用。Called by GetAcceleratorKey().

GetAccessKey()

获取与自动化对等关联的元素的访问密钥。Gets the access key for the element that is associated with the automation peer.

(Inherited from AutomationPeer)
GetAccessKeyCore()

获取与此 ContentElementAutomationPeer 关联的 ContentElement 的访问密钥。Gets the access key for the ContentElement that is associated with this ContentElementAutomationPeer. GetAccessKey() 调用。Called by GetAccessKey().

GetAutomationControlType()

获取与此对等 UI 自动化UI Automation 关联的元素的控件类型。Gets the control type for the element that is associated with the UI 自动化UI Automation peer.

(Inherited from AutomationPeer)
GetAutomationControlTypeCore()

获取与此 ContentElementAutomationPeer 关联的 ContentElement 的控件类型。Gets the control type for the ContentElement that is associated with this ContentElementAutomationPeer. GetAutomationControlType() 调用。Called by GetAutomationControlType().

GetAutomationId()

获取与自动化同级关联的元素的 AutomationIdGets the AutomationId of the element that is associated with the automation peer.

(Inherited from AutomationPeer)
GetAutomationIdCore()

获取唯一标识与此 ContentElementAutomationPeer 关联的 ContentElement 的字符串。Gets the string that uniquely identifies the ContentElement that is associated with this ContentElementAutomationPeer. GetAutomationId() 调用。Called by GetAutomationId().

GetBoundingRectangle()

获取表示与自动化同级关联的元素的屏幕坐标的 Rect 对象。Gets the Rect object that represents the screen coordinates of the element that is associated with the automation peer.

(Inherited from AutomationPeer)
GetBoundingRectangleCore()

获取 Rect,表示与此 ContentElementAutomationPeer 相关联的 ContentElement 的绑定矩形。Gets the Rect representing the bounding rectangle of the ContentElement that is associated with this ContentElementAutomationPeer. GetBoundingRectangle() 调用。Called by GetBoundingRectangle().

GetChildren()

获取在 UI 自动化树中表示为自动化对等方的直接子元素的 GetChildren() 元素的集合。Gets the collection of GetChildren() elements that are represented in the UI Automation tree as immediate child elements of the automation peer.

(Inherited from AutomationPeer)
GetChildrenCore()

获取与此 ContentElementAutomationPeer 相关联的 ContentElement 的子元素的集合。Gets the collection of child elements of the ContentElement that is associated with this ContentElementAutomationPeer. GetChildren() 调用。Called by GetChildren().

GetClassName()

获取与 AutomationControlType 一起使用的名称,以区分由此 AutomationPeer 表示的控件。Gets a name that is used with AutomationControlType, to differentiate the control that is represented by this AutomationPeer.

(Inherited from AutomationPeer)
GetClassNameCore()

获取与此 ContentElementAutomationPeer 关联的 ContentElement 的名称。Gets the name of the ContentElement that is associated with this ContentElementAutomationPeer. GetClassName() 调用。Called by GetClassName().

GetClickablePoint()

获取与自动化同级相关联的元素上响应鼠标单击的 PointGets a Point on the element that is associated with the automation peer that responds to a mouse click.

(Inherited from AutomationPeer)
GetClickablePointCore()

获取表示位于与此 ContentElementAutomationPeer 关联的 ContentElement 上的可点击空间的 PointGets a Point that represents the clickable space that is on the ContentElement that is associated with this ContentElementAutomationPeer. GetClickablePoint() 调用。Called by GetClickablePoint().

GetControlledPeers()

为 UI 自动化提供受此 AutomationPeer 影响或控制的元素列表。Provides UI Automation with a list of elements affected or controlled by this AutomationPeer.

(Inherited from AutomationPeer)
GetControlledPeersCore()

在派生类中替代时,为 UI 自动化提供受此 AutomationPeer 影响或控制的元素列表。When overridden in a derived class, provides UI Automation with a list of elements affected or controlled by this AutomationPeer.

(Inherited from AutomationPeer)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetHelpText()

获取描述与自动化同级关联的控件的功能的文本。Gets text that describes the functionality of the control that is associated with the automation peer.

(Inherited from AutomationPeer)
GetHelpTextCore()

获取用于描述与此 ContentElementAutomationPeer 关联的 ContentElement 的功能的字符串。Gets the string that describes the functionality of the ContentElement that is associated with this ContentElementAutomationPeer. GetHelpText() 调用。Called by GetHelpText().

GetHostRawElementProviderCore()

告知 UI 自动化UI AutomationUI 自动化UI Automation 树中何处放置由 Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) 元素托管的 hwndTells UI 自动化UI Automation where in the UI 自动化UI Automation tree to place the hwnd being hosted by a Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) element.

(Inherited from AutomationPeer)
GetItemStatus()

获取可传达与此自动化同级关联的元素的可视状态的文本。Gets text that conveys the visual status of the element that is associated with this automation peer.

(Inherited from AutomationPeer)
GetItemStatusCore()

获取一个字符串,该字符串表示与此 ContentElementAutomationPeer 相关联的 ContentElement 的可视状态。Gets a string that conveys the visual status of the ContentElement that is associated with this ContentElementAutomationPeer. GetItemStatus() 调用。Called by GetItemStatus().

GetItemType()

获取一个字符串,它描述对象表示何种类型的项。Gets a string that describes what kind of item an object represents.

(Inherited from AutomationPeer)
GetItemTypeCore()

获取用户可读的字符串,该字符串包含与此 ContentElementAutomationPeer 相关联的 ContentElement 所表示的项的类型。Gets a human-readable string that contains the type of the item that the ContentElement that is associated with this ContentElementAutomationPeer represents. GetItemType() 调用。Called by GetItemType().

GetLabeledBy()

获取以元素为目标的 LabelAutomationPeerGets the AutomationPeer for the Label that is targeted to the element.

(Inherited from AutomationPeer)
GetLabeledByCore()

Label 标签获取 AutomationPeer,此标签用于与 ContentElementAutomationPeer 关联的 ContentElementGets the AutomationPeer for the Label that is targeted to the ContentElement that is associated with this ContentElementAutomationPeer. GetLabeledBy() 调用。Called by GetLabeledBy().

GetLiveSetting()

获取与此自动化对等关联的活动区域的通知特征。Gets the notification characteristics of a live region that is associated with this automation peer.

(Inherited from AutomationPeer)
GetLiveSettingCore()

获取与此 ContentElementAutomationPeer 关联的 ContentElement 的活动区域的通知特征。Gets the notification characteristics of the live region of the ContentElement that is associated with this ContentElementAutomationPeer. GetLiveSetting() 调用。Called by GetLiveSetting().

GetLiveSettingCore()

在派生类中重写时,返回活动区域的通知特征。When overridden in a derived class, returns the notification characteristics of a live region. GetLiveSetting() 方法调用。Called by the GetLiveSetting() method.

(Inherited from AutomationPeer)
GetLocalizedControlType()

获取一个可读的本地化字符串,该字符串表示与此自动化对等方关联的控件的 AutomationControlType 值。Gets a human-readable localized string that represents the AutomationControlType value for the control that is associated with this automation peer.

(Inherited from AutomationPeer)
GetLocalizedControlTypeCore()

在派生类中重写时,由 GetLocalizedControlType() 调用。When overridden in a derived class, is called by GetLocalizedControlType().

(Inherited from AutomationPeer)
GetName()

获取描述与此自动化同级关联的元素的文本。Gets text that describes the element that is associated with this automation peer.

(Inherited from AutomationPeer)
GetNameCore()

获取与此 ContentElementAutomationPeer 关联的 ContentElement 的文本标签。Gets the text label of the ContentElement that is associated with this ContentElementAutomationPeer. GetName() 调用。Called by GetName().

GetOrientation()

获取指示显式控件方向(如果有)的值。Gets a value that indicates the explicit control orientation, if any.

(Inherited from AutomationPeer)
GetOrientationCore()

获取一个值,该值指示与此 ContentElementAutomationPeer 关联的 ContentElement 是否按特定方向进行布局。Gets a value that indicates whether the ContentElement that is associated with this ContentElementAutomationPeer is laid out in a specific direction. GetOrientation() 调用。Called by GetOrientation().

GetParent()

获取作为此 AutomationPeer 的父级的 AutomationPeerGets the AutomationPeer that is the parent of this AutomationPeer.

(Inherited from AutomationPeer)
GetPattern(PatternInterface)

获取与此 ContentElementAutomationPeer 关联的 ContentElement 的控件模式。Gets the control pattern for the ContentElement that is associated with this ContentElementAutomationPeer.

GetPeerFromPoint(Point)

从指定的点获取 AutomationPeerGets an AutomationPeer from the specified point.

(Inherited from AutomationPeer)
GetPeerFromPointCore(Point)

当在派生类中重写时,将由 GetPeerFromPoint(Point) 调用。When overridden in a derived class, is called from GetPeerFromPoint(Point).

(Inherited from AutomationPeer)
GetPositionInSet()

尝试获取 PositionInSet 属性的值。Attempts to get the value of the PositionInSet property.

(Inherited from AutomationPeer)
GetPositionInSetCore()

读取 PositionInSetProperty 并返回 PositionInSet 附加属性的值Reads PositionInSetProperty and returns the value of the PositionInSet attached property.

GetPositionInSetCore()

在派生类中替代时,为 UI 自动化提供一个从 1 开始的整数值,该值描述此元素在组或集中占据的位置。When overridden in a derived class, provides UI Automation with a one-based integer value that describes the position this element occupies in a group or set.

(Inherited from AutomationPeer)
GetSizeOfSet()

尝试获取 SizeOfSet 属性的值。Attempts to get the value of the SizeOfSet property.

(Inherited from AutomationPeer)
GetSizeOfSetCore()

读取 SizeOfSetProperty 并返回 SizeOfSet 附加属性的值Reads SizeOfSetProperty and returns the value of the SizeOfSet attached property.

GetSizeOfSetCore()

在派生类中替代时,为 UI 自动化提供此元素所属的组或集的大小。When overridden in a derived class, provides UI Automation with the size of the group or set that this element belongs to.

(Inherited from AutomationPeer)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
HasKeyboardFocus()

获取一个值,该值指示与此自动化同级关联的元素当前是否具有键盘焦点。Gets a value that indicates whether the element that is associated with this automation peer currently has keyboard focus.

(Inherited from AutomationPeer)
HasKeyboardFocusCore()

获取一个值,该值指示与此 ContentElementAutomationPeer 关联的 ContentElement 当前是否具有键盘输入点。Gets a value that indicates whether the ContentElement that is associated with this ContentElementAutomationPeer currently has keyboard input focus. HasKeyboardFocus() 调用。Called by HasKeyboardFocus().

InvalidatePeer()

触发对 AutomationPeer 主要属性的重新计算,如果属性已更改,则引发对自动化客户端的 PropertyChanged 通知。Triggers recalculation of the main properties of the AutomationPeer and raises the PropertyChanged notification to the Automation Client if the properties changed.

(Inherited from AutomationPeer)
IsContentElement()

获取一个值,该值指示与此自动化对等方关联的元素是否包含向用户显示的数据。Gets a value that indicates whether the element that is associated with this automation peer contains data that is presented to the user.

(Inherited from AutomationPeer)
IsContentElementCore()

获取一个值,该值指示与此 ContentElementAutomationPeer 关联的 ContentElement 是否是一个包含向用户显示的数据的元素。Gets a value that indicates whether the ContentElement that is associated with this ContentElementAutomationPeer is an element that contains data that is presented to the user. IsContentElement() 调用。Called by IsContentElement().

IsControlElement()

获取一个值,该值指示用户将元素理解为交互元素,还是理解为组成 GUIGUI 中控件的逻辑结构的一部分。Gets a value that indicates whether the element is understood by the user as interactive or as contributing to the logical structure of the control in the GUIGUI.

(Inherited from AutomationPeer)
IsControlElementCore()

获取一个值,该值指示与此 ContentElementAutomationPeer 关联的 ContentElement 是否被最终用户理解为交互式的或组成 GUIGUI 中的控件逻辑结构的元素。Gets a value that indicates whether the ContentElement that is associated with this ContentElementAutomationPeer is something that the end user would understand as being interactive or as contributing to the logical structure of the control in the GUIGUI. IsControlElement() 调用。Called by IsControlElement().

IsEnabled()

获取一个值,该值指示与此自动化同级关联的元素是否支持交互。Gets a value that indicates whether the element associated with this automation peer supports interaction.

(Inherited from AutomationPeer)
IsEnabledCore()

获取一个值,该值指示此自动化对等方是否可以接收事件并将事件发送到关联的元素。Gets a value that indicates whether this automation peer can receive and send events to the associated element. IsEnabled() 调用。Called by IsEnabled().

IsKeyboardFocusable()

获取一个值,该值指示此元素是否可以接受键盘焦点。Gets a value that indicates whether the element can accept keyboard focus.

(Inherited from AutomationPeer)
IsKeyboardFocusableCore()

获取一个值,该值指示与此 ContentElementAutomationPeer 关联的 ContentElement 是否接受键盘点。Gets a value that indicates whether the ContentElement that is associated with this ContentElementAutomationPeer can accept keyboard focus. IsKeyboardFocusable() 调用。Called by IsKeyboardFocusable().

IsOffscreen()

获取一个值,该值指示元素是否不在屏幕上。Gets a value that indicates whether an element is off the screen.

(Inherited from AutomationPeer)
IsOffscreenCore()

获取一个值,该值指示与此 ContentElementAutomationPeer 关联的 ContentElement 是否显示在屏幕上。Gets a value that indicates whether ContentElement that is associated with this ContentElementAutomationPeer is off of the screen. IsOffscreen() 调用。Called by IsOffscreen().

IsPassword()

获取一个值,该值指示元素是否包含敏感内容。Gets a value that indicates whether the element contains sensitive content.

(Inherited from AutomationPeer)
IsPasswordCore()

获取一个值,该值指示与此 ContentElementAutomationPeer 相关联的 ContentElement 是否包含受保护内容。Gets a value that indicates whether the ContentElement that is associated with this ContentElementAutomationPeer contains protected content. IsPassword() 调用。Called by IsPassword().

IsRequiredForForm()

获取一个值,该值指示是否必须在窗体中完成与此同级关联的元素。Gets a value that indicates whether the element that is associated with this peer must be completed on a form.

(Inherited from AutomationPeer)
IsRequiredForFormCore()

获取一个值,该值指示与此 ContentElementAutomationPeer 关联的 ContentElement 是否需要在窗体上进行填写。Gets a value that indicates whether the ContentElement that is associated with this ContentElementAutomationPeer is required to be filled out on a form. IsRequiredForForm() 调用。Called by IsRequiredForForm().

MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
PeerFromProvider(IRawElementProviderSimple)

获取指定的 AutomationPeer 代理的 IRawElementProviderSimpleGets an AutomationPeer for the specified IRawElementProviderSimple proxy.

(Inherited from AutomationPeer)
ProviderFromPeer(AutomationPeer)

获取指定的 IRawElementProviderSimpleAutomationPeerGets the IRawElementProviderSimple for the specified AutomationPeer.

(Inherited from AutomationPeer)
RaiseAsyncContentLoadedEvent(AsyncContentLoadedEventArgs)

AutomationPeer 调用以引发 AsyncContentLoadedEvent 事件。Called by the AutomationPeer to raise the AsyncContentLoadedEvent event.

(Inherited from AutomationPeer)
RaiseAutomationEvent(AutomationEvents)

引发自动化事件。Raises an automation event.

(Inherited from AutomationPeer)
RaisePropertyChangedEvent(AutomationProperty, Object, Object)

引发事件以通知自动化客户端已更改的属性值。Raises an event to notify the automation client of a changed property value.

(Inherited from AutomationPeer)
ResetChildrenCache()

通过调用 GetChildrenCore() 同步重置子元素树。Synchronously resets the tree of child elements by calling GetChildrenCore().

(Inherited from AutomationPeer)
SetFocus()

对与此自动化同级关联的元素设置键盘焦点。Sets the keyboard focus on the element that is associated with this automation peer.

(Inherited from AutomationPeer)
SetFocusCore()

对与此 ContentElementAutomationPeer 关联的 ContentElement 设置键盘输入点。Sets the keyboard input focus on the ContentElement that is associated with this ContentElementAutomationPeer. SetFocus() 调用。Called by SetFocus().

ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)
VerifyAccess()

强制调用线程具有此 DispatcherObject 的访问权限。Enforces that the calling thread has access to this DispatcherObject.

(Inherited from DispatcherObject)

Applies to