Class GridUIAProvider
Automation of the Grid UI
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Grid
Assembly: Syncfusion.Grid.Windows.dll
Syntax
public class GridUIAProvider : IRawElementProviderFragmentRoot, IRawElementProviderFragment, IRawElementProviderSimple, ISelectionProvider, IScrollProvider
Constructors
GridUIAProvider(Control)
assign the grid control
Declaration
public GridUIAProvider(Control grid)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Control | grid | Control either GridControl or GridDataBoundGrid |
Properties
BoundingRectangle
Gets the bounding rectangle of the Grid
Declaration
public Rect BoundingRectangle { get; }
Property Value
Type |
---|
System.Windows.Rect |
CanSelectMultiple
Gets the Boolean value for multi select.
Declaration
public bool CanSelectMultiple { get; }
Property Value
Type |
---|
System.Boolean |
FragmentRoot
Gets the FragmentRoot of Raw Element Provider
Declaration
public IRawElementProviderFragmentRoot FragmentRoot { get; }
Property Value
Type |
---|
System.Windows.Automation.Provider.IRawElementProviderFragmentRoot |
HorizontallyScrollable
Not Implemented.
Declaration
public bool HorizontallyScrollable { get; }
Property Value
Type |
---|
System.Boolean |
HorizontalScrollPercent
Not Implemented.
Declaration
public double HorizontalScrollPercent { get; }
Property Value
Type |
---|
System.Double |
HorizontalViewSize
Not Implemented.
Declaration
public double HorizontalViewSize { get; }
Property Value
Type |
---|
System.Double |
HostRawElementProvider
Gets the grid row element provider
Declaration
public IRawElementProviderSimple HostRawElementProvider { get; }
Property Value
Type |
---|
System.Windows.Automation.Provider.IRawElementProviderSimple |
IsSelectionRequired
Not Implemented.
Declaration
public bool IsSelectionRequired { get; }
Property Value
Type |
---|
System.Boolean |
ProviderOptions
Gets the automation provider options
Declaration
public ProviderOptions ProviderOptions { get; }
Property Value
Type |
---|
System.Windows.Automation.Provider.ProviderOptions |
VerticallyScrollable
Gets the bool value for the Vertical Scrolling
Declaration
public bool VerticallyScrollable { get; }
Property Value
Type |
---|
System.Boolean |
VerticalScrollPercent
Gets the value of vertical scroll as double value
Declaration
public double VerticalScrollPercent { get; }
Property Value
Type |
---|
System.Double |
VerticalViewSize
Gets size of vertical view source as double value
Declaration
public double VerticalViewSize { get; }
Property Value
Type |
---|
System.Double |
Methods
ElementProviderFromPoint(Double, Double)
get the element provider from the point
Declaration
public IRawElementProviderFragment ElementProviderFromPoint(double x, double y)
Parameters
Type | Name | Description |
---|---|---|
System.Double | x | x axis point |
System.Double | y | y axis point |
Returns
Type |
---|
System.Windows.Automation.Provider.IRawElementProviderFragment |
GetEmbeddedFragmentRoots()
Gets 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 |
GetFocus()
Get the focus on the Raw Element Provider
Declaration
public IRawElementProviderFragment GetFocus()
Returns
Type | Description |
---|---|
System.Windows.Automation.Provider.IRawElementProviderFragment | returns the IRawElementProviderFragment |
GetPatternProvider(Int32)
Gets 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)
Gets 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()
Gets the collection of Runtime ID
Declaration
public int[] GetRuntimeId()
Returns
Type | Description |
---|---|
System.Int32[] | collection of is |
GetSelection()
Not Implemented.
Declaration
public IRawElementProviderSimple[] GetSelection()
Returns
Type | Description |
---|---|
System.Windows.Automation.Provider.IRawElementProviderSimple[] | null |
Navigate(NavigateDirection)
Gets 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 |
Scroll(ScrollAmount, ScrollAmount)
Scroll the grid to particular amount in horizontal and vertical manner
Declaration
public void Scroll(ScrollAmount horizontalAmount, ScrollAmount verticalAmount)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Automation.ScrollAmount | horizontalAmount | value of horizontal scroll Amount |
System.Windows.Automation.ScrollAmount | verticalAmount | value of vertical scroll Amount |
SetFocus()
Sets the focus on grid which is automated
Declaration
public void SetFocus()
SetScrollPercent(Double, Double)
set the scroll percent of the Grid
Declaration
public void SetScrollPercent(double horizontalPercent, double verticalPercent)
Parameters
Type | Name | Description |
---|---|---|
System.Double | horizontalPercent | value of horizontal scroll Percent |
System.Double | verticalPercent | value of vertical scroll Percent |