RibbonMenuItemDataAutomationPeer 类

定义

表示 RibbonMenuItem 中包含的数据。Represents the data contained in a RibbonMenuItem.

public ref class RibbonMenuItemDataAutomationPeer : System::Windows::Automation::Peers::ItemAutomationPeer, System::Windows::Automation::Provider::IExpandCollapseProvider, System::Windows::Automation::Provider::IInvokeProvider, System::Windows::Automation::Provider::IToggleProvider, System::Windows::Automation::Provider::ITransformProvider
public class RibbonMenuItemDataAutomationPeer : System.Windows.Automation.Peers.ItemAutomationPeer, System.Windows.Automation.Provider.IExpandCollapseProvider, System.Windows.Automation.Provider.IInvokeProvider, System.Windows.Automation.Provider.IToggleProvider, System.Windows.Automation.Provider.ITransformProvider
type RibbonMenuItemDataAutomationPeer = class
    inherit ItemAutomationPeer
    interface IExpandCollapseProvider
    interface IInvokeProvider
    interface IToggleProvider
    interface ITransformProvider
Public Class RibbonMenuItemDataAutomationPeer
Inherits ItemAutomationPeer
Implements IExpandCollapseProvider, IInvokeProvider, IToggleProvider, ITransformProvider
继承
RibbonMenuItemDataAutomationPeer
实现

构造函数

RibbonMenuItemDataAutomationPeer(Object, ItemsControlAutomationPeer)

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

属性

Dispatcher

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

(继承自 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.

(继承自 AutomationPeer)
IsHwndHost

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

(继承自 AutomationPeer)
Item

获取与此 Items 关联的 ItemAutomationPeer 集合中的数据项。Gets the data item in the Items collection that is associated with this ItemAutomationPeer.

(继承自 ItemAutomationPeer)
ItemsControlAutomationPeer

获取与包含 ItemsControlAutomationPeer 集合的 ItemsControl 关联的 ItemsGets the ItemsControlAutomationPeer that is associated with the ItemsControl that holds the Items collection.

(继承自 ItemAutomationPeer)

方法

CheckAccess()

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

(继承自 DispatcherObject)
Equals(Object)

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

(继承自 Object)
GetAcceleratorKey()

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

(继承自 AutomationPeer)
GetAcceleratorKeyCore()

获取与此 ItemAutomationPeer 关联的 Items 集合中的数据项相对应的 UIElement 的加速键。Gets the accelerator key for the UIElement that corresponds to the data item in the Items collection that is associated with this ItemAutomationPeer.

(继承自 ItemAutomationPeer)
GetAccessKey()

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

(继承自 AutomationPeer)
GetAccessKeyCore()

获取与 Items 集合(与此 ItemAutomationPeer 关联)中的数据项相对应的 UIElement 的访问键。Gets the access key for the UIElement that corresponds to the data item in the Items collection that is associated with this ItemAutomationPeer.

(继承自 ItemAutomationPeer)
GetAutomationControlType()

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

(继承自 AutomationPeer)
GetAutomationControlTypeCore()

获取与此 RibbonMenuItem 关联的 RibbonMenuItemDataAutomationPeer 的控件类型。Gets the control type for the RibbonMenuItem that is associated with this RibbonMenuItemDataAutomationPeer. 此方法由 GetAutomationControlType() 调用。This method is called by GetAutomationControlType().

GetAutomationId()

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

(继承自 AutomationPeer)
GetAutomationIdCore()

获取一个字符串,该字符串唯一标识对应于 UIElement 集合中与此 Items 关联的数据项的 ItemAutomationPeerGets the string that uniquely identifies the UIElement that corresponds to the data item in the Items collection that is associated with this ItemAutomationPeer.

(继承自 ItemAutomationPeer)
GetBoundingRectangle()

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

(继承自 AutomationPeer)
GetBoundingRectangleCore()

获取表示指定的 Rect 的边框的 UIElementGets the Rect that represents the bounding rectangle of the specified UIElement.

(继承自 ItemAutomationPeer)
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.

(继承自 AutomationPeer)
GetChildrenCore()

获取与 UIElement 集合(与此 Items 关联)中的数据项相对应的 ItemAutomationPeer 的子元素的集合。Gets the collection of child elements of the UIElement that corresponds to the data item in the Items collection that is associated with this ItemAutomationPeer.

(继承自 ItemAutomationPeer)
GetClassName()

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

(继承自 AutomationPeer)
GetClassNameCore()

获取与此 RibbonMenuItem 关联的 RibbonMenuItemDataAutomationPeer 类名。Gets the class name of the RibbonMenuItem that is associated with this RibbonMenuItemDataAutomationPeer. 此方法由 GetClassName() 调用。This method is called by GetClassName().

GetClickablePoint()

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

(继承自 AutomationPeer)
GetClickablePointCore()

获取表示指定的 Point 上可点击空间的 UIElementGets a Point that represents the clickable space that is on the specified UIElement.

(继承自 ItemAutomationPeer)
GetControlledPeers()

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

(继承自 AutomationPeer)
GetControlledPeersCore()

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

(继承自 AutomationPeer)
GetHashCode()

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

(继承自 Object)
GetHelpText()

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

(继承自 AutomationPeer)
GetHelpTextCore()

获取描述与 UIElement 集合(与此 Items 关联)中数据项相对应的 ItemAutomationPeer 的功能的字符串。Gets the string that describes the functionality of the UIElement that corresponds to the data item in the Items collection that is associated with this ItemAutomationPeer.

(继承自 ItemAutomationPeer)
GetHostRawElementProviderCore()

指示 UI 自动化在 UI 自动化树中放置 hwnd 由 Windows Presentation Foundation (WPF) 元素承载的。Tells UI Automation where in the UI Automation tree to place the hwnd being hosted by a Windows Presentation Foundation (WPF) element.

(继承自 AutomationPeer)
GetItemStatus()

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

(继承自 AutomationPeer)
GetItemStatusCore()

获取传送指定的 UIElement 的可视状态的字符串。Gets a string that conveys the visual status of the specified UIElement.

(继承自 ItemAutomationPeer)
GetItemType()

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

(继承自 AutomationPeer)
GetItemTypeCore()

获取包含指定的 UIElement 表示的项类型的可读字符串。Gets a human-readable string that contains the type of item that the specified UIElement represents.

(继承自 ItemAutomationPeer)
GetLabeledBy()

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

(继承自 AutomationPeer)
GetLabeledByCore()

获取目标为指定的 AutomationPeerLabelUIElementGets the AutomationPeer for the Label that is targeted to the specified UIElement.

(继承自 ItemAutomationPeer)
GetLiveSetting()

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

(继承自 AutomationPeer)
GetLiveSettingCore()

获取与 Items 集合(与此 ItemAutomationPeer 对象关联)中的数据项相对应的 UIElement 的活动区域的通知特征。Gets the notification characteristics of the live region for the UIElement that corresponds to the data item in the Items collection that is associated with this ItemAutomationPeer object.

(继承自 ItemAutomationPeer)
GetLocalizedControlType()

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

(继承自 AutomationPeer)
GetLocalizedControlTypeCore()

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

(继承自 AutomationPeer)
GetName()

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

(继承自 AutomationPeer)
GetNameCore()

获取与 UIElement 集合(与此 Items 关联)中的数据项相对应的 ItemAutomationPeer 的文本标签。Gets the text label of the UIElement that corresponds to the data item in the Items collection that is associated with this ItemAutomationPeer.

(继承自 ItemAutomationPeer)
GetOrientation()

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

(继承自 AutomationPeer)
GetOrientationCore()

获取一个值,该值指示指定的 UIElement 是否以特定方向布局。Gets a value that indicates whether the specified UIElement is laid out in a particular direction.

(继承自 ItemAutomationPeer)
GetParent()

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

(继承自 AutomationPeer)
GetPattern(PatternInterface)

获取与 RibbonTab 关联的 RibbonMenuItemDataAutomationPeer 的控件模式。Gets the control pattern for the RibbonTab that is associated with the RibbonMenuItemDataAutomationPeer.

GetPeerFromPoint(Point)

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

(继承自 AutomationPeer)
GetPeerFromPointCore(Point)

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

(继承自 AutomationPeer)
GetPositionInSet()

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

(继承自 AutomationPeer)
GetPositionInSetCore()

获取集中此项的位置。Gets the position of this item within a set.

(继承自 ItemAutomationPeer)
GetSizeOfSet()

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

(继承自 AutomationPeer)
GetSizeOfSetCore()

获取包含此项的集大小。Gets the size of a set that contains this item.

(继承自 ItemAutomationPeer)
GetType()

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

(继承自 Object)
HasKeyboardFocus()

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

(继承自 AutomationPeer)
HasKeyboardFocusCore()

获取一个值,该值指示指定的 UIElement 当前是否具有键盘输入焦点。Gets a value that indicates whether the specified UIElement currently has keyboard input focus.

(继承自 ItemAutomationPeer)
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.

(继承自 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.

(继承自 AutomationPeer)
IsContentElementCore()

获取一个值,该值指示指定的 UIElement 是否包含向用户显示的数据。Gets a value that indicates whether the specified UIElement contains data that is presented to the user.

(继承自 ItemAutomationPeer)
IsControlElement()

获取一个值,该值指示用户是将元素理解为交互式元素,还是理解为作为 GUI 中控件的逻辑结构的一部分。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 GUI.

(继承自 AutomationPeer)
IsControlElementCore()

获取一个值,该值指示与此 UIElement 关联的 ItemAutomationPeer 是否被最终用户理解为交互式元素。Gets a value that indicates whether the UIElement that is associated with this ItemAutomationPeer is understood by the end user as interactive.

(继承自 ItemAutomationPeer)
IsEnabled()

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

(继承自 AutomationPeer)
IsEnabledCore()

获取一个值,该值指示指定的 UIElement 是否可以接收和发送事件。Gets a value that indicates whether the specified UIElement can receive and send events.

(继承自 ItemAutomationPeer)
IsKeyboardFocusable()

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

(继承自 AutomationPeer)
IsKeyboardFocusableCore()

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

(继承自 ItemAutomationPeer)
IsOffscreen()

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

(继承自 AutomationPeer)
IsOffscreenCore()

获取一个值,该值指示指定的 UIElement 是否不在屏幕上。Gets a value that indicates whether the specified UIElement is off the screen.

(继承自 ItemAutomationPeer)
IsPassword()

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

(继承自 AutomationPeer)
IsPasswordCore()

获取一个值,该值指示指定的 UIElement 是否包含受保护的内容。Gets a value that indicates whether the specified UIElement contains protected content.

(继承自 ItemAutomationPeer)
IsRequiredForForm()

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

(继承自 AutomationPeer)
IsRequiredForFormCore()

获取一个值,该值指示是否需要在表单上填写指定的 UIElementGets a value that indicates whether the specified UIElement is required to be completed on a form.

(继承自 ItemAutomationPeer)
MemberwiseClone()

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

(继承自 Object)
PeerFromProvider(IRawElementProviderSimple)

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

(继承自 AutomationPeer)
ProviderFromPeer(AutomationPeer)

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

(继承自 AutomationPeer)
RaiseAsyncContentLoadedEvent(AsyncContentLoadedEventArgs)

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

(继承自 AutomationPeer)
RaiseAutomationEvent(AutomationEvents)

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

(继承自 AutomationPeer)
RaisePropertyChangedEvent(AutomationProperty, Object, Object)

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

(继承自 AutomationPeer)
ResetChildrenCache()

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

(继承自 AutomationPeer)
SetFocus()

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

(继承自 AutomationPeer)
SetFocusCore()

对指定的 UIElement 设置键盘输入焦点。Sets the keyboard input focus on the specified UIElement. UIElementItems 集合(与此 ItemAutomationPeer 关联)中的数据项相对应。The UIElement corresponds to the data item in the Items collection that is associated with this ItemAutomationPeer.

(继承自 ItemAutomationPeer)
ToString()

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

(继承自 Object)
VerifyAccess()

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

(继承自 DispatcherObject)

显式接口实现

IExpandCollapseProvider.Collapse()

隐藏与此 RibbonMenuItem 关联的 RibbonMenuItemDataAutomationPeer 中的所有项目。Hides all items that are in the RibbonMenuItem that is associated with this RibbonMenuItemDataAutomationPeer.

IExpandCollapseProvider.Expand()

显示与此 RibbonMenuItem 关联的 RibbonMenuItemDataAutomationPeer 中的所有项目。Displays all items that are in the RibbonMenuItem that is associated with this RibbonMenuItemDataAutomationPeer.

IExpandCollapseProvider.ExpandCollapseState

获取与此 RibbonMenuItem 关联的 RibbonMenuItemDataAutomationPeer 的状态(已展开或已折叠)。Gets the state, expanded or collapsed, of the RibbonMenuItem that is associated with this RibbonMenuItemDataAutomationPeer.

IInvokeProvider.Invoke()

发生请求以激活与此 RibbonMenuItem 关联的 RibbonMenuItemDataAutomationPeerSends a request to activate the RibbonMenuItem that is associated with this RibbonMenuItemDataAutomationPeer.

IToggleProvider.Toggle()

循环访问与此 RibbonMenuItem 关联的 RibbonMenuItemDataAutomationPeer 的检查状态。Cycles through the checked states of the RibbonMenuItem that is associated with this RibbonMenuItemDataAutomationPeer.

IToggleProvider.ToggleState

获取与此 RibbonMenuItem 关联的 RibbonMenuItemDataAutomationPeer 的检查状态。Gets the checked state of the RibbonMenuItem that is associated with this RibbonMenuItemDataAutomationPeer.

ITransformProvider.CanMove

获取指定的与 RibbonMenuItem 关联的 RibbonMenuItemDataAutomationPeer 是否可被移动的值。Gets a value that specifies whether the RibbonMenuItem that is associated with this RibbonMenuItemDataAutomationPeer can be moved.

ITransformProvider.CanResize

获取指定的与 RibbonMenuItem 关联的 RibbonMenuItemDataAutomationPeer 是否可被调整大小的值。Gets a value that specifies whether the RibbonMenuItem that is associated with this RibbonMenuItemDataAutomationPeer can be resized.

ITransformProvider.CanRotate

获取指定的与 RibbonMenuItem 关联的RibbonMenuItemDataAutomationPeer 是否已被旋转的值。Gets a value that specifies whether the RibbonMenuItem that is associated with this RibbonMenuItemDataAutomationPeer can be rotated.

ITransformProvider.Move(Double, Double)

未实现此 API。This API is not implemented.

ITransformProvider.Resize(Double, Double)

未实现此 API。This API is not implemented.

ITransformProvider.Rotate(Double)

未实现此 API。This API is not implemented.

IVirtualizedItemProvider.Realize()

使虚拟项像 UI 自动化元素一样可完全访问。Makes the virtual item fully accessible as a UI Automation element.

(继承自 ItemAutomationPeer)

适用于