Class IosSegmentedControl
- Namespace
- Ranorex
- Assembly
- Ranorex.Plugin.Mobile.dll
Capability for mobile UISegmentedControl class
public class IosSegmentedControl : Adapter, IAdapter
- Inheritance
-
IosSegmentedControl
- Implements
- Inherited Members
Constructors
IosSegmentedControl()
Creates a new IosSegmentedControl adapter instance. This constructor is used internally by the Ranorex Core Framework for performance issues!
protected IosSegmentedControl()
IosSegmentedControl(Element)
Creates a new IosSegmentedControl adapter instance.
public IosSegmentedControl(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
NumberOfSegments
NumberOfSegments property from iOS UISegmentedControl or similar classes
public virtual int NumberOfSegments { get; }
Property Value
RequiredCapabilities
Capabilities required by the adapter implementation.
protected override string[] RequiredCapabilities { get; }
Property Value
- string[]
SelectedSegmentIndex
SelectedSegmentIndex property from iOS UISegmentedControl or similar classes
public virtual int SelectedSegmentIndex { 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 IosSegmentedControl FromElement(Element element)
Parameters
elementElementThe element to convert.
Returns
- IosSegmentedControl
The IosSegmentedControl.
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 IosSegmentedControl FromPath(string path)
Parameters
pathstringThe search path.
Returns
- IosSegmentedControl
The IosSegmentedControl.
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 IosSegmentedControl(Element)
Implicitly converts an Element to an instance of this class.
public static implicit operator IosSegmentedControl(Element element)
Parameters
elementElementThe element to convert.
Returns
- IosSegmentedControl
The IosSegmentedControl.
Exceptions
- ArgumentNullException
If
elementisnull.- CapabilityNotSupportedException
If the element does not support the capabilities required by this adapter.
implicit operator IosSegmentedControl(string)
Implicitly converts a string to an instance of this class by searching the root.
public static implicit operator IosSegmentedControl(string path)
Parameters
pathstringThe search path.
Returns
- IosSegmentedControl
The IosSegmentedControl.
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.