In This Article

BarButtonAutomationPeer Class

Exposes BarButton types to UI Automation.

public class BarButtonAutomationPeer : ButtonAutomationPeer, IInvokeProvider
Inheritance:
object AutomationPeer ControlAutomationPeer ContentControlAutomationPeer ButtonAutomationPeer object
Derived:
BarToggleButtonAutomationPeer RibbonApplicationButtonAutomationPeer RibbonGroupCollapsedButtonAutomationPeer RibbonQuickAccessToolBarOverflowButtonAutomationPeer StandaloneToolBarOverflowButtonAutomationPeer
Implements:
IInvokeProvider

Constructors

BarButtonAutomationPeer(BarButton)

Initializes a new instance of the class.

public BarButtonAutomationPeer(BarButton owner)
Parameter Type Description
owner BarButton

The owner element.

Methods

GetAutomationIdCore()

Gets the automation ID of the element that is associated with the UI Automation peer.

protected override string GetAutomationIdCore()

Returns

string

GetChildrenCore()

Gets the child automation peers.

protected override IReadOnlyList<AutomationPeer>? GetChildrenCore()

Returns

IReadOnlyList<AutomationPeer>

GetClassNameCore()

Gets a string that describes the class of the element.

protected override string GetClassNameCore()

Returns

string

GetLocalizedControlTypeCore()

Gets a human-readable localized string that represents the type of the control that is associated with this automation peer.

protected override string GetLocalizedControlTypeCore()

Returns

string

GetNameCore()

Gets text that describes the element that is associated with this automation peer.

protected override string? GetNameCore()

Returns

string

Inherited Members

  • ButtonAutomationPeer.Invoke()
  • ButtonAutomationPeer.GetAcceleratorKeyCore()
  • ButtonAutomationPeer.GetAutomationControlTypeCore()
  • ButtonAutomationPeer.IsContentElementCore()
  • ButtonAutomationPeer.IsControlElementCore()
  • ButtonAutomationPeer.Owner
  • ControlAutomationPeer.GetOrCreate(Control)
  • ControlAutomationPeer.CreatePeerForElement(Control)
  • ControlAutomationPeer.FromElement(Control)
  • ControlAutomationPeer.BringIntoViewCore()
  • ControlAutomationPeer.GetOrCreateChildrenCore()
  • ControlAutomationPeer.GetLabeledByCore()
  • ControlAutomationPeer.GetHelpTextCore()
  • ControlAutomationPeer.GetParentCore()
  • ControlAutomationPeer.GetVisualRootCore()
  • ControlAutomationPeer.InvalidateChildren()
  • ControlAutomationPeer.InvalidateParent()
  • ControlAutomationPeer.ShowContextMenuCore()
  • ControlAutomationPeer.TrySetParent(AutomationPeer)
  • ControlAutomationPeer.GetAccessKeyCore()
  • ControlAutomationPeer.GetBoundingRectangleCore()
  • ControlAutomationPeer.HasKeyboardFocusCore()
  • ControlAutomationPeer.IsEnabledCore()
  • ControlAutomationPeer.IsKeyboardFocusableCore()
  • ControlAutomationPeer.SetFocusCore()
  • ControlAutomationPeer.GetControlTypeOverrideCore()
  • ControlAutomationPeer.IsContentElementOverrideCore()
  • ControlAutomationPeer.IsControlElementOverrideCore()
  • ControlAutomationPeer.IsOffscreenCore()
  • AutomationPeer.BringIntoView()
  • AutomationPeer.GetAcceleratorKey()
  • AutomationPeer.GetAccessKey()
  • AutomationPeer.GetAutomationControlType()
  • AutomationPeer.GetAutomationId()
  • AutomationPeer.GetBoundingRectangle()
  • AutomationPeer.GetChildren()
  • AutomationPeer.GetClassName()
  • AutomationPeer.GetLabeledBy()
  • AutomationPeer.GetLocalizedControlType()
  • AutomationPeer.GetName()
  • AutomationPeer.GetHelpText()
  • AutomationPeer.GetParent()
  • AutomationPeer.GetVisualRoot()
  • AutomationPeer.HasKeyboardFocus()
  • AutomationPeer.IsContentElement()
  • AutomationPeer.IsControlElement()
  • AutomationPeer.IsEnabled()
  • AutomationPeer.IsKeyboardFocusable()
  • AutomationPeer.IsOffscreen()
  • AutomationPeer.SetFocus()
  • AutomationPeer.ShowContextMenu()
  • AutomationPeer.GetProvider<T>()
  • AutomationPeer.RaiseChildrenChangedEvent()
  • AutomationPeer.RaisePropertyChangedEvent(AutomationProperty, object, object)
  • AutomationPeer.GetProviderCore(Type)
  • AutomationPeer.EnsureEnabled()
  • AutomationPeer.ChildrenChanged
  • AutomationPeer.PropertyChanged
  • object.GetType()
  • object.MemberwiseClone()
  • object.ToString()
  • object.Equals(object)
  • object.Equals(object, object)
  • object.ReferenceEquals(object, object)
  • object.GetHashCode()

Extension Methods