New to Telerik UI for WinForms? Start a free 30-day trial

Coordinates root-provider creation, WM_GETOBJECT handling, and provider cleanup for controls that support root UI Automation.

Definition

Namespace:Telerik.WinControls.UIAutomation

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class RootUIAutomationManager : IRootUIAutomationManager

Inheritance: objectRootUIAutomationManager

Implements: IRootUIAutomationManager

Constructors

Creates a manager for the specified root-UI-Automation owner.

C#
public RootUIAutomationManager(ISupportRootUIAutomation owner)
Parameters:ownerISupportRootUIAutomation

The control support object whose provider lifecycle is managed.

Properties

Gets whether UI Automation requests can be handled because clients are listening, the feature is enabled, and a provider exists for a loaded non-design owner.

C#
public bool CanHandleUIAutomationRequests { get; }

Implements: IRootUIAutomationManager.CanHandleUIAutomationRequests

Gets the support object whose root provider is managed.

C#
public ISupportRootUIAutomation Owner { get; }

Implements: IRootUIAutomationManager.Owner

Methods

Releases the provider when root UI Automation has been disabled.

C#
public void OnEnableUIAutomationChanged()

Implements: IRootUIAutomationManager.OnEnableUIAutomationChanged()

Processes a root-object WM_GETOBJECT request, initializing the provider on demand.

C#
public bool ProcessWmGetObject(ref Message m)
Parameters:mMessage

The window message whose result is set when the request is handled.

Returns:

bool

true when a provider is returned to UI Automation; otherwise, false.

Exceptions: InvalidOperationException

In a debug build, provider initialization leaves Owner.UIAutomationProvider null after a valid request.

Implements: IRootUIAutomationManager.ProcessWmGetObject(ref Message)

Disconnects and disposes the root provider when the owner is loaded, not in design mode, and has a window handle.

C#
public void ReleaseUIAutomationProvider()

Implements: IRootUIAutomationManager.ReleaseUIAutomationProvider()