Provides root-fragment behavior and common UI Automation properties and events for a WinForms control.
Definition
Namespace:Telerik.WinControls.UIAutomation
Assembly:Telerik.WinControls.UI.dll
Type Parameters:
T
The concrete control type represented by this provider.
Syntax:
public abstract class RadControlBaseRootUIAutomationProvider<T> : RadFragmentUIAutomationProvider, IRadRawElementProviderFragmentRoot, IRawElementProviderFragmentRoot, IRadRawElementProviderFragment, IRawElementProviderFragment, IRawElementProviderSimple where T : Control
Inheritance: objectRadFragmentUIAutomationProviderRadControlBaseRootUIAutomationProvider<T>
Derived Classes:
Implements:
Inherited Members
Constructors
Creates a root provider for a control within an optional parent fragment.
public RadControlBaseRootUIAutomationProvider(IRadRawElementProviderFragment parent, T owner)
The parent fragment, or null when this provider is the root.
ownerTThe control represented by this provider.
Exceptions: ArgumentNullExceptionowner is null.
Creates a root provider for a control with no parent fragment.
public RadControlBaseRootUIAutomationProvider(T owner)
The control represented by this provider.
Exceptions: ArgumentNullExceptionowner is null.
Properties
Gets the control's bounds in screen coordinates, or an empty rectangle before its handle is created.
public override Rect BoundingRectangle { get; }
Overrides:
Implements:
Gets this provider as the root of its fragment tree.
public override IRawElementProviderFragmentRoot FragmentRoot { get; }
Overrides:
Implements:
Gets the native host provider when the control's handle exists; otherwise returns null.
public override IRawElementProviderSimple HostRawElementProvider { get; }
Overrides:
Implements:
Gets the control represented by this provider.
public T Owner { get; }
Methods
Unsubscribes from control events and disconnects cached child providers.
public override void Disconnect()
Overrides:
Implements:
Gets the fragment selected by the concrete provider for a screen point.
Gets the control's accessible name when set, or its Name otherwise.
Gets the fragment selected by the concrete provider as currently focused.
public abstract IRawElementProviderFragment GetFocus()
The focused fragment selected by the concrete provider.
Implements:
Gets the control represented by this provider.
Gets the control's enabled state, its accessible name (falling back to name and then text), or help text; other properties use the base provider.
Gets the root provider's runtime identifier, including the control handle and provider hash code.
public override int[] GetRuntimeId()
int[]
The append-runtime-id marker, control handle, and provider hash code.
Overrides:
Implements:
Gets the element under a screen point within a scroll bar, preferring its first button, second button, then thumb; otherwise returns the scroll-bar provider.
public static IRawElementProviderFragment GetScrollbarElementAtPoint(RadScrollBarElement scrollbar, ScrollBarElementUIAutomationProvider scrollbarProvider, double x, double y)
The scroll-bar element to inspect.
scrollbarProviderScrollBarElementUIAutomationProviderThe UI Automation provider for the scroll bar.
xdoubleThe horizontal screen coordinate.
ydoubleThe vertical screen coordinate.
Returns:The matching button or thumb provider, or scrollbarProvider when the point is elsewhere in the scroll bar.
Gets a shortcut for the first ampersand in the control's text when it introduces a mnemonic.
Determines whether a screen point falls within an element's screen bounds.
public static bool IsPointInControl(RadElement element, double x, double y)
The element to test.
xdoubleThe horizontal screen coordinate.
ydoubleThe vertical screen coordinate.
Returns:true when the element is attached to a control and the point is within its bounds; otherwise, false.