Class GridCellUIAProvider
Grid cell provider of UI for automation
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Grid
Assembly: Syncfusion.Grid.Windows.dll
Syntax
public class GridCellUIAProvider : IRawElementProviderFragment, IRawElementProviderSimple, IValueProvider, ISelectionItemProvider
Constructors
GridCellUIAProvider(Control, GridStyleInfo)
Assign the control for GridCellUIAProvider
Declaration
public GridCellUIAProvider(Control grid, GridStyleInfo info)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Forms.Control | grid | Control either GridControl or GridDataBoundGrid |
| GridStyleInfo | info | GridStyleInfo of cell |
Fields
ProviderOptionUseComThreading
Const value of ProviderOptionUseComThreading
Declaration
public const int ProviderOptionUseComThreading = 32
Field Value
| Type |
|---|
| System.Int32 |
Properties
BoundingRectangle
Get the bounding rectangle of the Grid
Declaration
public Rect BoundingRectangle { get; }
Property Value
| Type |
|---|
| System.Windows.Rect |
FragmentRoot
get the FragmentRoot of Raw Element Provider
Declaration
public IRawElementProviderFragmentRoot FragmentRoot { get; }
Property Value
| Type |
|---|
| System.Windows.Automation.Provider.IRawElementProviderFragmentRoot |
HostRawElementProvider
get the grid row element provider
Declaration
public IRawElementProviderSimple HostRawElementProvider { get; }
Property Value
| Type |
|---|
| System.Windows.Automation.Provider.IRawElementProviderSimple |
IsReadOnly
Get the bool value if the grid is read-only
Declaration
public bool IsReadOnly { get; }
Property Value
| Type |
|---|
| System.Boolean |
IsSelected
Returns the true value of the item that is selected
Declaration
public bool IsSelected { get; }
Property Value
| Type |
|---|
| System.Boolean |
ProviderOptions
get the automation provider options
Declaration
public ProviderOptions ProviderOptions { get; }
Property Value
| Type |
|---|
| System.Windows.Automation.Provider.ProviderOptions |
SelectionContainer
Gets the selection container of grid which holds the selected records
Declaration
public IRawElementProviderSimple SelectionContainer { get; }
Property Value
| Type |
|---|
| System.Windows.Automation.Provider.IRawElementProviderSimple |
Value
Get the formatted text as value
Declaration
public string Value { get; }
Property Value
| Type |
|---|
| System.String |
Methods
AddToSelection()
Add item to selected item.
Declaration
public void AddToSelection()
GetEmbeddedFragmentRoots()
get the collection of the Embedded FragmentRoot of Raw Element Provider
Declaration
public IRawElementProviderSimple[] GetEmbeddedFragmentRoots()
Returns
| Type | Description |
|---|---|
| System.Windows.Automation.Provider.IRawElementProviderSimple[] | returns the collections of Element ProviderSimple |
GetPatternProvider(Int32)
Get the pattern provider by the pattern id
Declaration
public object GetPatternProvider(int patternId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | patternId | id of value pattern |
Returns
| Type | Description |
|---|---|
| System.Object | returns the pattern provider |
GetPropertyValue(Int32)
get the value based on the property id
Declaration
public object GetPropertyValue(int propertyId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | propertyId | id of Automation Element |
Returns
| Type | Description |
|---|---|
| System.Object | returns the property value |
GetRuntimeId()
Get the collection of Runtime ID
Declaration
public int[] GetRuntimeId()
Returns
| Type | Description |
|---|---|
| System.Int32[] | collection of is |
Navigate(NavigateDirection)
Get the IROW element provider Fragment by the NavigateDirection
Declaration
public IRawElementProviderFragment Navigate(NavigateDirection direction)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Automation.Provider.NavigateDirection | direction | Navigate Direction |
Returns
| Type | Description |
|---|---|
| System.Windows.Automation.Provider.IRawElementProviderFragment | returns the Irow element provider |
RemoveFromSelection()
Remove the item from selection
Declaration
public void RemoveFromSelection()
Select()
Select the item
Declaration
public void Select()
SetFocus()
set the focus on automation element
Declaration
public void SetFocus()
SetValue(String)
Set the value to formatted text of GridStyleInfo
Declaration
public void SetValue(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | value | Formatted Text |