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

Exposes a RadItem as an accessible element with a configurable role and pointer-pressed state.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

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

Inheritance: objectMarshalByRefObjectStandardOleMarshalObjectAccessibleObjectControl.ControlAccessibleObjectRadControlAccessibleObjectRadItemElementAccessibleObject...

Implements: IAccessibleIReflect

Constructors

Creates the accessibility object and sets the role returned by Role.

C#
public RadItemElementAccessibleObject(RadItem owner, AccessibleRole role, string name)
Parameters:ownerRadItem

The attached item represented by this object.

roleAccessibleRole

The accessible role to expose.

namestring

The name passed to the base control accessibility object; this class's Name property reads its value from owner.

Creates the accessibility object for an item attached to a control's element tree.

C#
public RadItemElementAccessibleObject(RadItem owner, string name)
Parameters:ownerRadItem

The attached item represented by this object.

namestring

The name passed to the base control accessibility object; this class's Name property reads its value from owner.

Properties

Gets the item's text as the accessible description.

C#
public override string Description { get; }

Overrides: Control.ControlAccessibleObject.Description

Gets or sets the accessible name stored on the item.

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

Overrides: RadControlAccessibleObject.Name

Gets the RadItem represented by this accessibility object.

C#
public override object OwnerElement { get; }

Overrides: RadControlAccessibleObject.OwnerElement

Gets the role configured by the role-taking constructor or SetRole(AccessibleRole).

C#
public override AccessibleRole Role { get; }

Overrides: Control.ControlAccessibleObject.Role

Gets the base state and adds Pressed while the item is held down.

C#
public override AccessibleStates State { get; }

Overrides: AccessibleObject.State

Methods

Sets the role reported by this accessibility object.

C#
public void SetRole(AccessibleRole role)
Parameters:roleAccessibleRole

The role to return from Role.