Interface
IRadRawElementProviderFragment

Represents UI Automation provider associated with an object from the Telerik UI for WinForms family. The interface is currently implemented for RadControls and RadElements.

Definition

Properties

Owner

The object which is associated with the UI Automation provider.

Declaration

cs-api-definition
object Owner { get; }

Property Value

object

Methods

Disconnect()

Used to release the UI Automation provider. This method is called when the UI Automation provider is no longer needed.

Declaration

cs-api-definition
void Disconnect()

FindChildUIAutomationProvider<T>(object)

Searches the entire subtree of child UI Automation providers to find the UI Automation provider for the given object.

Declaration

cs-api-definition
T FindChildUIAutomationProvider<T>(object child) where T : IRawElementProviderFragment

Parameters

child

object

The object whose UI Automation provider we are querying.

Returns

T

GetChildElementProviderFragment(object, Func<object, IRadRawElementProviderFragment>)

Gets the UIA provider of the given child object. This method is implemented by a parent UIA provider which returns a child UIA provider for the given child. The child UIA provider is created lazily provided it's not yet created and an initialization functions is passed.

Declaration

cs-api-definition
IRawElementProviderFragment GetChildElementProviderFragment(object child, Func<object, IRadRawElementProviderFragment> initFunc = null)

Parameters

child

object

The object whose UI Automation provider we are querying.

initFunc

Func<object, IRadRawElementProviderFragment>

Init function used to create the UIA provider for the given child element, assuming no no such provider has already been created..

Returns

IRawElementProviderFragment

GetChildElementProviderFragment(object, object, Func<object, object, IRadRawElementProviderFragment>)

Gets the UIA provider of the given child object. This method is implemented by a parent UIA provider which returns a child UIA provider for the given child. The child UIA provider is created lazily provided it's not yet created and an initialization functions is passed.

Declaration

cs-api-definition
IRawElementProviderFragment GetChildElementProviderFragment(object child, object context, Func<object, object, IRadRawElementProviderFragment> initFunc = null)

Parameters

child

object

The object whose UI Automation provider we are querying.

context

object

The context of the UI Automation provider we are querying.

initFunc

Func<object, object, IRadRawElementProviderFragment>

Init function used to create the UIA provider for the given child element, assuming no no such provider has already been created..

Returns

IRawElementProviderFragment

NavigateNextSibling(IRawElementProviderFragment)

Get the previous sibling element of the passed child.

Declaration

cs-api-definition
IRawElementProviderFragment NavigateNextSibling(IRawElementProviderFragment child)

Parameters

child

IRawElementProviderFragment

The element that is evaluated to get a previous sibling.

Returns

IRawElementProviderFragment

NavigatePreviousSibling(IRawElementProviderFragment)

Get the previous sibling element of the passed child.

Declaration

cs-api-definition
IRawElementProviderFragment NavigatePreviousSibling(IRawElementProviderFragment child)

Parameters

child

IRawElementProviderFragment

The element that is evaluated to get a previous sibling.

Returns

IRawElementProviderFragment