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
elementElementThe element to create the adapter for.
Exceptions
- NullReferenceException
If
elementisnull.- 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
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
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
elementElementThe element to convert.
Returns
- UIAutomationRangeValue
The UIAutomationRangeValue.
Exceptions
- ArgumentNullException
If
elementisnull.- 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
pathstringThe search path.
Returns
- UIAutomationRangeValue
The UIAutomationRangeValue.
Remarks
The DefaultSearchTimeout is used to search for the specified path.
Exceptions
- ArgumentNullException
If
pathisnull.- RxPathException
If the specified
pathis 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
elementElementThe element to convert.
Returns
- UIAutomationRangeValue
The UIAutomationRangeValue.
Exceptions
- ArgumentNullException
If
elementisnull.- 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
pathstringThe search path.
Returns
- UIAutomationRangeValue
The UIAutomationRangeValue.
Remarks
The DefaultSearchTimeout is used to search for the specified path.
Exceptions
- ArgumentNullException
If
pathisnull.- RxPathException
If the specified
pathis not valid.- ElementNotFoundException
If no element is found.
- CapabilityNotSupportedException
If the element does not support the capabilities required by this adapter.