RibbonToggleButton.OnCreateAutomationPeer Method

Creates a new RibbonToggleButtonAutomationPeer object for this control.

Namespace:  Microsoft.Windows.Controls.Ribbon
Assembly:  RibbonControlsLibrary (in RibbonControlsLibrary.dll)

Syntax

'Declaration
Protected Overrides Function OnCreateAutomationPeer As AutomationPeer
protected override AutomationPeer OnCreateAutomationPeer()
protected:
virtual AutomationPeer^ OnCreateAutomationPeer() override
abstract OnCreateAutomationPeer : unit -> AutomationPeer 
override OnCreateAutomationPeer : unit -> AutomationPeer 
protected override function OnCreateAutomationPeer() : AutomationPeer

Return Value

Type: System.Windows.Automation.Peers.AutomationPeer
A new automation peer object for this control.

.NET Framework Security

See Also

Reference

RibbonToggleButton Class

Microsoft.Windows.Controls.Ribbon Namespace