RibbonMenuItemDataAutomationPeer Constructor
Initializes a new instance of the RibbonMenuItemDataAutomationPeer class.
Namespace: Microsoft.Windows.Automation.Peers
Assembly: RibbonControlsLibrary (in RibbonControlsLibrary.dll)
Syntax
'Declaration
Public Sub New ( _
item As Object, _
itemsControlPeer As ItemsControlAutomationPeer _
)
public RibbonMenuItemDataAutomationPeer(
Object item,
ItemsControlAutomationPeer itemsControlPeer
)
public:
RibbonMenuItemDataAutomationPeer(
Object^ item,
ItemsControlAutomationPeer^ itemsControlPeer
)
new :
item:Object *
itemsControlPeer:ItemsControlAutomationPeer -> RibbonMenuItemDataAutomationPeer
public function RibbonMenuItemDataAutomationPeer(
item : Object,
itemsControlPeer : ItemsControlAutomationPeer
)
Parameters
- item
Type: System.Object
The element associated with this automation peer.
- itemsControlPeer
Type: System.Windows.Automation.Peers.ItemsControlAutomationPeer
The automation peer that is associated with the ItemsControl that holds the RibbonMenuItem.
.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.