편집

다음을 통해 공유


MenuItem.OnCreateAutomationPeer Method

Definition

Provides an appropriate MenuItemAutomationPeer implementation for this control, as part of the WPF automation infrastructure.

protected:
 override System::Windows::Automation::Peers::AutomationPeer ^ OnCreateAutomationPeer();
protected override System.Windows.Automation.Peers.AutomationPeer OnCreateAutomationPeer ();
override this.OnCreateAutomationPeer : unit -> System.Windows.Automation.Peers.AutomationPeer
Protected Overrides Function OnCreateAutomationPeer () As AutomationPeer

Returns

A MenuItemAutomationPeer for this MenuItem.

Applies to