New to Telerik UI for WinFormsStart a free 30-day trial

Accessibility implementation for GridView object

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
public sealed class RadGridViewAccessibleObject : Control.ControlAccessibleObject, IReflect, IAccessible

Inheritance: objectMarshalByRefObjectStandardOleMarshalObjectAccessibleObjectControl.ControlAccessibleObjectRadGridViewAccessibleObject...

Implements: IAccessibleIReflect

Constructors

Initializes a new instance of the RadGridViewAccessibleObject class.

C#
public RadGridViewAccessibleObject(RadGridView owner)
Parameters:ownerRadGridView

The owner.

Properties

Gets or sets the cell description.

C#
public string CellDescription { get; set; }
Property Value:

The cell description.

Gets the control.

C#
public RadGridView Control { get; }
Property Value:

The control.

Gets or sets the object name.

C#
public override string Name { get; set; }
Property Value:

The object name, or null if the property has not been set.

Exceptions:

COMException

The name of the control cannot be retrieved or set.

Overrides: Control.ControlAccessibleObject.Name

Gets the role of this accessible object

C#
public override AccessibleRole Role { get; }

Overrides: Control.ControlAccessibleObject.Role

Methods

Gets the cell accessible object.

C#
public AccessibleObject GetCellAccessibleObject(GridViewCellInfo cellInfo, RowAccessibleObject parent)
Parameters:cellInfoGridViewCellInfo

The cell info.

parentRowAccessibleObject

The parent.

Returns:

AccessibleObject

Retrieves the accessible child corresponding to the specified index

C#
public override AccessibleObject GetChild(int index)
Parameters:indexint

Index of the row/header

Returns:

AccessibleObject

The accessible Row/header object

Overrides: AccessibleObject.GetChild(int)

Retrieves the number of children belonging to an accessible object

C#
public override int GetChildCount()
Returns:

int

Count of number of rows plus one for the header row

Overrides: AccessibleObject.GetChildCount()

Gets the row accessible object.

C#
public AccessibleObject GetRowAccessibleObject(GridViewRowInfo rowInfo)
Parameters:rowInfoGridViewRowInfo

The row info.

Returns:

AccessibleObject

Internal method used to retrieve bounding rectangle of a cell

C#
public Rectangle GetRowElement(GridViewRowInfo row)
Parameters:rowGridViewRowInfo

The row object

Returns:

Rectangle

Bounding rectangle of row