Show / Hide Table of Contents

Class DataGridAutomationPeer

Exposes DataGrid types to UI Automation.

Inheritance
System.Object
DependencyObject
AutomationPeer
FrameworkElementAutomationPeer
DataGridAutomationPeer
Implements
IScrollProvider
ISelectionProvider
ITableProvider
IGridProvider
Inherited Members
FrameworkElementAutomationPeer.Owner
FrameworkElementAutomationPeer.FromElement(UIElement)
FrameworkElementAutomationPeer.CreatePeerForElement(UIElement)
FrameworkElementAutomationPeer.GetAcceleratorKeyCore()
FrameworkElementAutomationPeer.GetAccessKeyCore()
FrameworkElementAutomationPeer.GetAutomationIdCore()
FrameworkElementAutomationPeer.GetHelpTextCore()
FrameworkElementAutomationPeer.GetItemStatusCore()
FrameworkElementAutomationPeer.GetItemTypeCore()
FrameworkElementAutomationPeer.GetLabeledByCore()
FrameworkElementAutomationPeer.IsRequiredForFormCore()
FrameworkElementAutomationPeer.GetBoundingRectangleCore()
FrameworkElementAutomationPeer.GetClickablePointCore()
FrameworkElementAutomationPeer.IsContentElementCore()
FrameworkElementAutomationPeer.IsControlElementCore()
FrameworkElementAutomationPeer.IsPasswordCore()
FrameworkElementAutomationPeer.IsEnabledCore()
FrameworkElementAutomationPeer.GetLocalizedControlTypeCore()
FrameworkElementAutomationPeer.GetOrientationCore()
FrameworkElementAutomationPeer.HasKeyboardFocusCore()
FrameworkElementAutomationPeer.IsKeyboardFocusableCore()
FrameworkElementAutomationPeer.IsOffscreenCore()
FrameworkElementAutomationPeer.SetFocusCore()
AutomationPeer.EventsSource
AutomationPeer.ListenerExists(AutomationEvents)
AutomationPeer.GetAcceleratorKey()
AutomationPeer.GetAccessKey()
AutomationPeer.GetAutomationControlType()
AutomationPeer.GetAutomationId()
AutomationPeer.GetBoundingRectangle()
AutomationPeer.GetChildren()
AutomationPeer.GetClassName()
AutomationPeer.GetClickablePoint()
AutomationPeer.GetHelpText()
AutomationPeer.GetItemStatus()
AutomationPeer.GetItemType()
AutomationPeer.GetLabeledBy()
AutomationPeer.GetLocalizedControlType()
AutomationPeer.GetName()
AutomationPeer.GetOrientation()
AutomationPeer.HasKeyboardFocus()
AutomationPeer.IsContentElement()
AutomationPeer.IsControlElement()
AutomationPeer.IsEnabled()
AutomationPeer.IsKeyboardFocusable()
AutomationPeer.IsOffscreen()
AutomationPeer.IsPassword()
AutomationPeer.IsRequiredForForm()
AutomationPeer.SetFocus()
AutomationPeer.InvalidatePeer()
AutomationPeer.GetParent()
AutomationPeer.RaiseAutomationEvent(AutomationEvents)
AutomationPeer.RaisePropertyChangedEvent(AutomationProperty, Object, Object)
AutomationPeer.PeerFromProvider(IRawElementProviderSimple)
AutomationPeer.ProviderFromPeer(AutomationPeer)
DependencyObject.GetValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, Object)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.SetValue(DependencyPropertyKey, Object)
DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Dispatcher
DependencyObject.INTERNAL_OnAttachedToVisualTree()
DependencyObject.INTERNAL_OnDetachedFromVisualTree()
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CheckAccess()
DependencyObject.GetAnimationBaseValue(DependencyProperty)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Automation.Peers
Assembly: OpenSilver.Controls.Data.dll
Syntax
public class DataGridAutomationPeer : FrameworkElementAutomationPeer, IDependencyObject, IScrollProvider, ISelectionProvider, ITableProvider, IGridProvider

Constructors

| Improve this Doc View Source

DataGridAutomationPeer(DataGrid)

Initializes a new instance of the DataGridAutomationPeer class.

Declaration
public DataGridAutomationPeer(DataGrid owner)
Parameters
Type Name Description
DataGrid owner

The DataGrid that is associated with this DataGridAutomationPeer.

Methods

| Improve this Doc View Source

GetAutomationControlTypeCore()

Gets the control type for the element that is associated with the UI Automation peer.

Declaration
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
Type Description
AutomationControlType

The control type.

Overrides
FrameworkElementAutomationPeer.GetAutomationControlTypeCore()
| Improve this Doc View Source

GetChildrenCore()

Gets the collection of elements that are represented in the UI Automation tree as immediate child elements of the automation peer.

Declaration
protected override List<AutomationPeer> GetChildrenCore()
Returns
Type Description
System.Collections.Generic.List<AutomationPeer>

The children elements.

Overrides
FrameworkElementAutomationPeer.GetChildrenCore()
| Improve this Doc View Source

GetClassNameCore()

Called by GetClassName that gets a human readable name that, in addition to AutomationControlType, differentiates the control represented by this AutomationPeer.

Declaration
protected override string GetClassNameCore()
Returns
Type Description
System.String

The string that contains the name.

Overrides
FrameworkElementAutomationPeer.GetClassNameCore()
| Improve this Doc View Source

GetNameCore()

Called by GetName.

Declaration
protected override string GetNameCore()
Returns
Type Description
System.String

Returns the first of these that is not null or empty:

  • Value returned by the base implementation
  • Name of the owning DataGrid
  • DataGrid class name
Overrides
FrameworkElementAutomationPeer.GetNameCore()
| Improve this Doc View Source

GetPattern(PatternInterface)

Gets the control pattern that is associated with the specified System.Windows.Automation.Peers.PatternInterface.

Declaration
public override object GetPattern(PatternInterface patternInterface)
Parameters
Type Name Description
PatternInterface patternInterface

A value from the System.Windows.Automation.Peers.PatternInterface enumeration.

Returns
Type Description
System.Object

The object that supports the specified pattern, or null if unsupported.

Overrides
FrameworkElementAutomationPeer.GetPattern(PatternInterface)

Explicit Interface Implementations

| Improve this Doc View Source

IGridProvider.ColumnCount

Declaration
int IGridProvider.ColumnCount { get; }
Returns
Type Description
System.Int32
| Improve this Doc View Source

IGridProvider.GetItem(Int32, Int32)

Declaration
IRawElementProviderSimple IGridProvider.GetItem(int row, int column)
Parameters
Type Name Description
System.Int32 row
System.Int32 column
Returns
Type Description
IRawElementProviderSimple
| Improve this Doc View Source

IGridProvider.RowCount

Declaration
int IGridProvider.RowCount { get; }
Returns
Type Description
System.Int32
| Improve this Doc View Source

IScrollProvider.HorizontallyScrollable

Declaration
bool IScrollProvider.HorizontallyScrollable { get; }
Returns
Type Description
System.Boolean
| Improve this Doc View Source

IScrollProvider.HorizontalScrollPercent

Declaration
double IScrollProvider.HorizontalScrollPercent { get; }
Returns
Type Description
System.Double
| Improve this Doc View Source

IScrollProvider.HorizontalViewSize

Declaration
double IScrollProvider.HorizontalViewSize { get; }
Returns
Type Description
System.Double
| Improve this Doc View Source

IScrollProvider.Scroll(ScrollAmount, ScrollAmount)

Declaration
void IScrollProvider.Scroll(ScrollAmount horizontalAmount, ScrollAmount verticalAmount)
Parameters
Type Name Description
ScrollAmount horizontalAmount
ScrollAmount verticalAmount
| Improve this Doc View Source

IScrollProvider.SetScrollPercent(Double, Double)

Declaration
void IScrollProvider.SetScrollPercent(double horizontalPercent, double verticalPercent)
Parameters
Type Name Description
System.Double horizontalPercent
System.Double verticalPercent
| Improve this Doc View Source

IScrollProvider.VerticallyScrollable

Declaration
bool IScrollProvider.VerticallyScrollable { get; }
Returns
Type Description
System.Boolean
| Improve this Doc View Source

IScrollProvider.VerticalScrollPercent

Declaration
double IScrollProvider.VerticalScrollPercent { get; }
Returns
Type Description
System.Double
| Improve this Doc View Source

IScrollProvider.VerticalViewSize

Declaration
double IScrollProvider.VerticalViewSize { get; }
Returns
Type Description
System.Double
| Improve this Doc View Source

ISelectionProvider.CanSelectMultiple

Declaration
bool ISelectionProvider.CanSelectMultiple { get; }
Returns
Type Description
System.Boolean
| Improve this Doc View Source

ISelectionProvider.GetSelection()

Declaration
IRawElementProviderSimple[] ISelectionProvider.GetSelection()
Returns
Type Description
IRawElementProviderSimple[]
| Improve this Doc View Source

ISelectionProvider.IsSelectionRequired

Declaration
bool ISelectionProvider.IsSelectionRequired { get; }
Returns
Type Description
System.Boolean
| Improve this Doc View Source

ITableProvider.GetColumnHeaders()

Declaration
IRawElementProviderSimple[] ITableProvider.GetColumnHeaders()
Returns
Type Description
IRawElementProviderSimple[]
| Improve this Doc View Source

ITableProvider.GetRowHeaders()

Declaration
IRawElementProviderSimple[] ITableProvider.GetRowHeaders()
Returns
Type Description
IRawElementProviderSimple[]
| Improve this Doc View Source

ITableProvider.RowOrColumnMajor

Declaration
RowOrColumnMajor ITableProvider.RowOrColumnMajor { get; }
Returns
Type Description
RowOrColumnMajor

Implements

IScrollProvider
ISelectionProvider
ITableProvider
IGridProvider

Extension Methods

DependencyObjectHelper.GetSelfAndAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestorsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualChildren(DependencyObject)
VisualTreeExtensions.GetVisualChildrenAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualDescendants(DependencyObject)
VisualTreeExtensions.GetVisualDescendantsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualSiblings(DependencyObject)
VisualTreeExtensions.GetVisualSiblingsAndSelf(DependencyObject)
  • Improve this Doc
  • View Source