Exposes the ribbon's application button, Quick Access toolbar, tabs, and group items as accessibility children.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
[ComVisible(true)]
public class RadRibbonBarAccessibleObject : Control.ControlAccessibleObject, IReflect, IAccessible
Inheritance: objectMarshalByRefObjectStandardOleMarshalObjectAccessibleObjectControl.ControlAccessibleObjectRadRibbonBarAccessibleObject...
Implements:
Constructors
Creates the accessibility object for a ribbon bar.
public RadRibbonBarAccessibleObject(RadRibbonBar owner)
The ribbon bar whose interactive items are exposed.
Fields
Stores a hovered ribbon item found while enumerating tab-group children; GetSelected() uses this field when creating an accessible child.
protected RadItem selected
Properties
Gets the description for the ribbon's current hover selection.
public override string Description { get; }
Overrides:
In coded UI mode, this returns the base description. Otherwise, it returns the hovered item's text,
Application Menufor the application button, or the ribbon control's name when no item is hovered.
Gets the current description or sets the ribbon control's name.
public override string Name { get; set; }
Overrides:
Outside coded UI mode, a hovered item supplies the getter's value, so setting the control name does not replace that item description.
Gets the ribbon bar represented by this accessibility object.
public RadRibbonBar RibbonBar { get; }
Gets the accessible role for the ribbon or the item currently under the pointer.
public override AccessibleRole Role { get; }
Overrides:
Coded UI mode always reports MenuBar. Otherwise, a hovered tab, check box, radio button, drop-down list, or button maps to its corresponding role; other states report a menu bar.
Gets the control state, adding Pressed while the ribbon element reports a mouse-down state.
public override AccessibleStates State { get; }
Overrides:
Methods
Invokes the application button's default click action.
public override void DoDefaultAction()
Overrides:
Gets the accessible child at the specified index in application-button, Quick Access, tab, then group-item order.
public override AccessibleObject GetChild(int index)
The zero-based index among the children reported by GetChildCount().
Returns:The accessible child at index, or null when no child is found.
Overrides:
Gets the number of accessible children across the application button, Quick Access toolbar, command tabs, and tab-group items.
public override int GetChildCount()
The total number of accessible children.
Overrides:
Gets an accessible representation of the ribbon's current hover selection.
public override AccessibleObject GetSelected()
null when no item is under the pointer; otherwise, the application-button object or a ribbon-item object created with the tracked selected item.
Overrides:
For non-application-button items, selected is updated only when GetChild(int) traverses a hovered tab-group item; this path therefore depends on prior child enumeration to populate the field.