Dela via


RibbonMenuItemAutomationPeer.CreateItemAutomationPeer Method

Creates a new RibbonMenuItemDataAutomationPeer for the specified item.

Namespace:  Microsoft.Windows.Automation.Peers
Assembly:  RibbonControlsLibrary (in RibbonControlsLibrary.dll)

Syntax

'Declaration
Protected Overrides Function CreateItemAutomationPeer ( _
    item As Object _
) As ItemAutomationPeer
protected override ItemAutomationPeer CreateItemAutomationPeer(
    Object item
)
protected:
virtual ItemAutomationPeer^ CreateItemAutomationPeer(
    Object^ item
) override
abstract CreateItemAutomationPeer : 
        item:Object -> ItemAutomationPeer 
override CreateItemAutomationPeer : 
        item:Object -> ItemAutomationPeer 
protected override function CreateItemAutomationPeer(
    item : Object
) : ItemAutomationPeer

Parameters

Return Value

Type: System.Windows.Automation.Peers.ItemAutomationPeer
A RibbonMenuItemDataAutomationPeer for the specified item.

.NET Framework Security

See Also

Reference

RibbonMenuItemAutomationPeer Class

Microsoft.Windows.Automation.Peers Namespace