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
- item
Type: System.Object
An object that is in the RibbonMenuItem that is associated with this RibbonMenuItemAutomationPeer.
Return Value
Type: System.Windows.Automation.Peers.ItemAutomationPeer
A RibbonMenuItemDataAutomationPeer for the specified item.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.