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

Exposes a PropertyGridItem as an accessible row with label and value cells.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
[ComVisible(true)]
public class PropertyGridItemAccessibleObject : PropertyGridItemBaseAccessibleObject, IReflect, IAccessible

Inheritance: objectMarshalByRefObjectStandardOleMarshalObjectAccessibleObjectPropertyGridItemBaseAccessibleObjectPropertyGridItemAccessibleObject...

Implements: IAccessibleIReflect

Inherited Members PropertyGridItemBaseAccessibleObject.GetElement<T>(PropertyGridItemBase)PropertyGridItemBaseAccessibleObject.ParentPropertyGridItemBaseAccessibleObject.Control

Constructors

Creates an accessible row for the specified property item.

C#
public PropertyGridItemAccessibleObject(PropertyGridItem item, RadPropertyGridAccessibilityInstance parent)
Parameters:itemPropertyGridItem

The property item represented by this row.

parentRadPropertyGridAccessibilityInstance

The accessibility instance that owns the row.

Properties

Gets the row's screen bounds, or Empty when its visual element is not available.

C#
public override Rectangle Bounds { get; }

Overrides: AccessibleObject.Bounds

Gets a description containing the item's index in the grid's root item collection.

C#
public override string Description { get; }

Overrides: AccessibleObject.Description

Gets the property item represented by this row.

C#
public PropertyGridItem Item { get; }

Gets the row description; assigning a name does not change the accessible name.

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

Overrides: AccessibleObject.Name

Gets the accessible row role.

C#
public override AccessibleRole Role { get; }

Overrides: AccessibleObject.Role

Gets the row's selectable and focusable state, adding focused and selected when its item is selected.

C#
public override AccessibleStates State { get; }

Overrides: AccessibleObject.State

Gets the item's value converted to a string and assigns a supplied string through the item's value setter.

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

Overrides: AccessibleObject.Value

Methods

Selects the represented item in the PropertyGrid.

C#
public override void DoDefaultAction()

Overrides: AccessibleObject.DoDefaultAction()

Gets the label cell for index zero or the formatted-value cell for the other index.

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

The accessible cell position.

Returns:

AccessibleObject

The accessible cell for the requested position.

Overrides: AccessibleObject.GetChild(int)

Gets the number of accessible cells, returning zero after the grid is disposed.

C#
public override int GetChildCount()
Returns:

int

Two when the grid is available; otherwise, zero.

Overrides: AccessibleObject.GetChildCount()

Gets this row when its item is the grid's selected item; otherwise, returns null.

C#
public override AccessibleObject GetFocused()
Returns:

AccessibleObject

Overrides: AccessibleObject.GetFocused()

Gets this row when its item is selected; otherwise, returns null.

C#
public override AccessibleObject GetSelected()
Returns:

AccessibleObject

Overrides: AccessibleObject.GetSelected()

Hit-tests a screen point and returns a cell for the hit grid text or value element, even if it belongs to another row.

C#
public override AccessibleObject HitTest(int x, int y)
Parameters:xint

The screen x-coordinate.

yint

The screen y-coordinate.

Returns:

AccessibleObject

The hit accessible cell, or the base hit-test result when no grid text or value element is hit.

Overrides: AccessibleObject.HitTest(int, int)

Selects the represented item for add, extend, take-selection, and take-focus requests.

C#
public override void Select(AccessibleSelection flags)
Parameters:flagsAccessibleSelection

The requested accessibility selection operation.

Overrides: AccessibleObject.Select(AccessibleSelection)