Table of Contents

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

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

NumberOfSegments

NumberOfSegments property from iOS UISegmentedControl or similar classes

public virtual int NumberOfSegments { get; }

Property Value

int

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

int

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

element Element

The element to convert.

Returns

IosSegmentedControl

The IosSegmentedControl.

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

Parameters

path string

The search path.

Returns

IosSegmentedControl

The IosSegmentedControl.

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 IosSegmentedControl(Element)

Implicitly converts an Element to an instance of this class.

public static implicit operator IosSegmentedControl(Element element)

Parameters

element Element

The element to convert.

Returns

IosSegmentedControl

The IosSegmentedControl.

Exceptions

ArgumentNullException

If element is null.

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

path string

The search path.

Returns

IosSegmentedControl

The IosSegmentedControl.

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.