Table of Contents

Class IosScrollView

Namespace
Ranorex
Assembly
Ranorex.Plugin.Mobile.dll

This capability adds iOS specific attributes to the UI element.

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

Constructors

IosScrollView()

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

protected IosScrollView()

IosScrollView(Element)

Creates a new IosScrollView adapter instance.

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

ContentHeight

The height of the embedded content view.

public virtual int ContentHeight { get; }

Property Value

int

ContentOffsetX

The X-coordinate at which the origin of the content view is offset from the origin of the scroll view.

public virtual int ContentOffsetX { get; }

Property Value

int

ContentOffsetY

The Y-coordinate at which the origin of the content view is offset from the origin of the scroll view.

public virtual int ContentOffsetY { get; }

Property Value

int

ContentWidth

The width of the embedded content view.

public virtual int ContentWidth { get; }

Property Value

int

MaxZoomScale

The maximum zoom scale value that is allowed.

public virtual float MaxZoomScale { get; }

Property Value

float

MinZoomScale

The minimal zoom scale value that is allowed.

public virtual float MinZoomScale { get; }

Property Value

float

RequiredCapabilities

Capabilities required by the adapter implementation.

protected override string[] RequiredCapabilities { get; }

Property Value

string[]

ZoomScale

The zoom value of this view. The embedded content view will be scaled accordingly to this value.

public virtual float ZoomScale { get; }

Property Value

float

Methods

FromElement(Element)

Converts an Element to an instance of this class.

public static IosScrollView FromElement(Element element)

Parameters

element Element

The element to convert.

Returns

IosScrollView

The IosScrollView.

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

Parameters

path string

The search path.

Returns

IosScrollView

The IosScrollView.

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

Implicitly converts an Element to an instance of this class.

public static implicit operator IosScrollView(Element element)

Parameters

element Element

The element to convert.

Returns

IosScrollView

The IosScrollView.

Exceptions

ArgumentNullException

If element is null.

CapabilityNotSupportedException

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

implicit operator IosScrollView(string)

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

public static implicit operator IosScrollView(string path)

Parameters

path string

The search path.

Returns

IosScrollView

The IosScrollView.

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.