Table of Contents

Class UIAutomationVirtualizedItem

Namespace
Ranorex
Assembly
Ranorex.Plugin.Uia.dll

Capability for the UIA VirtualizedItem pattern.

public class UIAutomationVirtualizedItem : Adapter, IAdapter
Inheritance
UIAutomationVirtualizedItem
Implements
Inherited Members

Constructors

UIAutomationVirtualizedItem()

Creates a new UIAutomationVirtualizedItem adapter instance. This constructor is used internally by the Ranorex Core Framework for performance issues!

protected UIAutomationVirtualizedItem()

UIAutomationVirtualizedItem(Element)

Creates a new UIAutomationVirtualizedItem adapter instance.

public UIAutomationVirtualizedItem(Element element)

Parameters

element Element

The element to create the adapter for.

Exceptions

NullReferenceException

If element is null.

CapabilityNotSupportedException

If the element does not support the capabilities required by this adapter.

Properties

RequiredCapabilities

Capabilities required by the adapter implementation.

protected override string[] RequiredCapabilities { get; }

Property Value

string[]

Methods

FromElement(Element)

Converts an Element to an instance of this class.

public static UIAutomationVirtualizedItem FromElement(Element element)

Parameters

element Element

The element to convert.

Returns

UIAutomationVirtualizedItem

The UIAutomationVirtualizedItem.

Exceptions

ArgumentNullException

If element is null.

CapabilityNotSupportedException

If the element does not support the capabilities required by this adapter.

FromPath(string)

Converts a string to an instance of this class by searching the root.

public static UIAutomationVirtualizedItem FromPath(string path)

Parameters

path string

The search path.

Returns

UIAutomationVirtualizedItem

The UIAutomationVirtualizedItem.

Remarks

The DefaultSearchTimeout is used to search for the specified path.

Exceptions

ArgumentNullException

If path is null.

RxPathException

If the specified path is not valid.

ElementNotFoundException

If no element is found.

CapabilityNotSupportedException

If the element does not support the capabilities required by this adapter.

Realize()

Realizes the virtual item to make it and its children fully accessible.

[OriginalDisplayName("UIAutomationVirtualizedItemRealize")]
public virtual void Realize()

Exceptions

ActionFailedException

Thrown if invoking the action failed.

Operators

implicit operator UIAutomationVirtualizedItem(Element)

Implicitly converts an Element to an instance of this class.

public static implicit operator UIAutomationVirtualizedItem(Element element)

Parameters

element Element

The element to convert.

Returns

UIAutomationVirtualizedItem

The UIAutomationVirtualizedItem.

Exceptions

ArgumentNullException

If element is null.

CapabilityNotSupportedException

If the element does not support the capabilities required by this adapter.

implicit operator UIAutomationVirtualizedItem(string)

Implicitly converts a string to an instance of this class by searching the root.

public static implicit operator UIAutomationVirtualizedItem(string path)

Parameters

path string

The search path.

Returns

UIAutomationVirtualizedItem

The UIAutomationVirtualizedItem.

Remarks

The DefaultSearchTimeout is used to search for the specified path.

Exceptions

ArgumentNullException

If path is null.

RxPathException

If the specified path is not valid.

ElementNotFoundException

If no element is found.

CapabilityNotSupportedException

If the element does not support the capabilities required by this adapter.