RibbonMenuItemAutomationPeer.CreateItemAutomationPeer(Object) 方法

定义

为指定的项创建一个新的 RibbonMenuItemDataAutomationPeer

protected:
 override System::Windows::Automation::Peers::ItemAutomationPeer ^ CreateItemAutomationPeer(System::Object ^ item);
protected override System.Windows.Automation.Peers.ItemAutomationPeer CreateItemAutomationPeer (object item);
override this.CreateItemAutomationPeer : obj -> System.Windows.Automation.Peers.ItemAutomationPeer
Protected Overrides Function CreateItemAutomationPeer (item As Object) As ItemAutomationPeer

参数

item
Object

RibbonMenuItem 中与此 RibbonMenuItemAutomationPeer 关联的对象。

返回

ItemAutomationPeer

指定项的 RibbonMenuItemDataAutomationPeer

适用于