Provides common fragment navigation, child-provider caching, and UI Automation properties for a fragment in the accessibility tree.
Definition
Namespace:Telerik.WinControls.UIAutomation
Assembly:Telerik.WinControls.UI.dll
Syntax:
public abstract class RadFragmentUIAutomationProvider : IRadRawElementProviderFragment, IRawElementProviderFragment, IRawElementProviderSimple
Inheritance: objectRadFragmentUIAutomationProvider
Derived Classes:
Implements:
Constructors
Creates a fragment provider with an optional parent in the UI Automation tree.
public RadFragmentUIAutomationProvider(IRadRawElementProviderFragment parent)
The containing fragment, or null when this provider has no parent.
Fields
childUIAProvidersPool
IDictionary<object, IRadRawElementProviderFragment>
Cached child providers, keyed by the UI element represented by each child.
protected readonly IDictionary<object, IRadRawElementProviderFragment> childUIAProvidersPool
Properties
Gets the fragment's bounding rectangle in screen coordinates.
public abstract Rect BoundingRectangle { get; }
Implements:
Gets this provider when it is also a fragment root; otherwise, gets the parent's fragment root.
public virtual IRawElementProviderFragmentRoot FragmentRoot { get; }
Implements:
Gets the host provider, or null when the fragment has no separate host provider.
public virtual IRawElementProviderSimple HostRawElementProvider { get; }
Implements:
Gets the parent fragment supplied when this provider was created.
public virtual IRadRawElementProviderFragment Parent { get; }
Gets the provider options indicating a server-side provider using COM threading.
public virtual ProviderOptions ProviderOptions { get; }
Implements:
Methods
Disconnects cached child providers, clears the cache, and notifies the UI Automation provider manager.
public virtual void Disconnect()
Implements:
Checks the cached provider for the specified element and attempts to search cached descendants. Only a direct match is returned; recursive match results are not propagated by this implementation.
public T FindChildUIAutomationProvider<T>(object element) where T : IRawElementProviderFragment
The element whose cached provider is checked first.
Returns:T
The cached provider for the specified element when it is of type T; otherwise, the default value, even if a deeper cached provider matches.
Implements:
Gets the automation identifier for the represented element.
public abstract object GetAutomationId()
The identifier exposed through the AutomationId property.
Gets an existing cached provider for a child or creates and caches one with initFunc.
public virtual IRawElementProviderFragment GetChildElementProviderFragment(object child, Func<object, IRadRawElementProviderFragment> initFunc = null)
The element used as the cache key.
initFuncFunc<object, IRadRawElementProviderFragment>The factory to invoke when the child has no cached provider.
Returns:The cached or newly created provider, or null if the child or factory result is null.
Implements:
Gets an existing cached provider for a child or creates and caches one with a context value.
public virtual IRawElementProviderFragment GetChildElementProviderFragment(object child, object context, Func<object, object, IRadRawElementProviderFragment> initFunc = null)
The element used as the cache key.
contextobjectAdditional data passed to the provider factory.
initFuncFunc<object, object, IRadRawElementProviderFragment>The factory to invoke when the child has no cached provider.
Returns:The cached or newly created provider, or null if the child or factory result is null.
Implements:
Gets embedded fragment roots, or null when none are exposed.
public virtual IRawElementProviderSimple[] GetEmbeddedFragmentRoots()
Implements:
Gets the UI element represented by this provider.
Gets the fragment's AutomationId and bounding rectangle; unhandled property identifiers return null.
Gets the runtime identifier used to distinguish this provider instance.
public abstract int[] GetRuntimeId()
int[]
The provider's runtime identifier.
Implements:
Navigates to this fragment's parent or a sibling through the parent provider.
public virtual IRawElementProviderFragment Navigate(NavigateDirection direction)
The navigation direction.
Returns:The related fragment for Parent, PreviousSibling, or NextSibling; otherwise, null.
Implements:
Navigates the next sibling of the specified child element. If there is no next sibling returns NULL.
public virtual IRawElementProviderFragment NavigateNextSibling(IRawElementProviderFragment child)
The next sibling element.
Implements:
Navigates the previous sibling of the specified child element. If there is no previous sibling returns NULL.
public virtual IRawElementProviderFragment NavigatePreviousSibling(IRawElementProviderFragment child)
The previous sibling element.
Implements:
Attempts to set focus to the represented element.
public abstract void SetFocus()
Implements: