New to Telerik UI for WinForms? Start a free 30-day trial

Exposes a ribbon tab or item as an accessible child of the ribbon bar.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
[ComVisible(true)]
public class RadRibbonBarItemAccessibleObject : RadControlAccessibleObject, IReflect, IAccessible

Inheritance: objectMarshalByRefObjectStandardOleMarshalObjectAccessibleObjectControl.ControlAccessibleObjectRadControlAccessibleObjectRadRibbonBarItemAccessibleObject...

Implements: IAccessibleIReflect

Constructors

Creates an accessible child for a ribbon item.

C#
public RadRibbonBarItemAccessibleObject(RadItem owner, RadRibbonBarAccessibleObject parent, string name)
Parameters:ownerRadItem

The ribbon item represented by this object.

parentRadRibbonBarAccessibleObject

The parent ribbon accessibility object.

namestring

The initial name passed to the base accessibility object.

Properties

Gets the location and size of the accessible object

C#
public override Rectangle Bounds { get; }

Overrides: AccessibleObject.Bounds

Gets a button-specific description or the represented item's text.

C#
public override string Description { get; }

Overrides: Control.ControlAccessibleObject.Description

For button elements, the description includes text, background, foreground, and border color channel values, followed by pressed state.

Gets the base accessible name in coded UI mode; otherwise, gets the text of the parent's currently hovered ribbon item.

C#
public override string Name { get; set; }

Overrides: RadControlAccessibleObject.Name

Setting the property writes to the represented item's Name; outside coded UI mode, the getter follows the parent's current hover item instead and returns null when none is hovered.

Gets the ribbon item represented by this accessibility object.

C#
public override object OwnerElement { get; }

Overrides: RadControlAccessibleObject.OwnerElement

Gets the parent ribbon accessibility object.

C#
public override AccessibleObject Parent { get; }

Overrides: Control.ControlAccessibleObject.Parent

Gets the accessible role mapped from the represented ribbon item type.

C#
public override AccessibleRole Role { get; }

Overrides: Control.ControlAccessibleObject.Role

Tabs, drop-down buttons, check boxes, radio buttons, and drop-down lists use their matching roles; other items report PushButton.

Gets a state that always includes Focusable and adds Focused while the item is under the pointer. Toggle items also report Checked or Mixed from their toggle state and Pressed while mouse-down.

C#
public override AccessibleStates State { get; }

Overrides: AccessibleObject.State