In This Article

RibbonBackstageCloseButtonAutomationPeer Class

Exposes RibbonBackstageCloseButton types to UI Automation.

public class RibbonBackstageCloseButtonAutomationPeer : ButtonAutomationPeer
Inheritance:
object AutomationPeer UIElementAutomationPeer FrameworkElementAutomationPeer ButtonBaseAutomationPeer ButtonAutomationPeer object

Constructors

RibbonBackstageCloseButtonAutomationPeer(RibbonBackstageCloseButton)

Initializes a new instance of the RibbonBackstageCloseButtonAutomationPeer class.

public RibbonBackstageCloseButtonAutomationPeer(RibbonBackstageCloseButton owner)
Parameter Type Description
owner RibbonBackstageCloseButton

The owner element.

Methods

GetChildrenCore()

Gets the collection of child elements of the UIElement that is associated with this UIElementAutomationPeer. This method is called by GetChildren().

protected override List<AutomationPeer> GetChildrenCore()

Returns

List<AutomationPeer>:

A list of child AutomationPeer elements.

GetClassNameCore()

Gets the name of the control that is associated with this UI Automation peer.

protected override string GetClassNameCore()

Returns

string:

A string that contains "Button".

GetLocalizedControlTypeCore()

When overridden in a derived class, is called by GetLocalizedControlType().

protected override string GetLocalizedControlTypeCore()

Returns

string:

The type of the control.

GetNameCore()

Gets the name of the class of the element associated with this ButtonBaseAutomationPeer. Called by GetName().

protected override string GetNameCore()

Returns

string:

A string that contains the class name, minus the accelerator key.