Table of Contents

Class UIAutomationRangeValue

Namespace
Ranorex
Assembly
Ranorex.Plugin.Uia.dll

Capability for the UIA RangeValue pattern.

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

Constructors

UIAutomationRangeValue()

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

protected UIAutomationRangeValue()

UIAutomationRangeValue(Element)

Creates a new UIAutomationRangeValue adapter instance.

public UIAutomationRangeValue(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

IsReadOnly

A value that specifies whether the value attribute is read-only.

[OriginalDisplayName("UIAutomationRangeValueIsReadOnly")]
public virtual bool IsReadOnly { get; }

Property Value

bool

RequiredCapabilities

Capabilities required by the adapter implementation.

protected override string[] RequiredCapabilities { get; }

Property Value

string[]

Value

The value of the element.

[OriginalDisplayName("UIAutomationRangeValueValue")]
public virtual double Value { get; set; }

Property Value

double

Exceptions

SetAttributeFailedException

Thrown if setting the attribute value failed.

Methods

FromElement(Element)

Converts an Element to an instance of this class.

public static UIAutomationRangeValue FromElement(Element element)

Parameters

element Element

The element to convert.

Returns

UIAutomationRangeValue

The UIAutomationRangeValue.

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 UIAutomationRangeValue FromPath(string path)

Parameters

path string

The search path.

Returns

UIAutomationRangeValue

The UIAutomationRangeValue.

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.

Operators

implicit operator UIAutomationRangeValue(Element)

Implicitly converts an Element to an instance of this class.

public static implicit operator UIAutomationRangeValue(Element element)

Parameters

element Element

The element to convert.

Returns

UIAutomationRangeValue

The UIAutomationRangeValue.

Exceptions

ArgumentNullException

If element is null.

CapabilityNotSupportedException

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

implicit operator UIAutomationRangeValue(string)

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

public static implicit operator UIAutomationRangeValue(string path)

Parameters

path string

The search path.

Returns

UIAutomationRangeValue

The UIAutomationRangeValue.

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.