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
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
ContentHeight
The height of the embedded content view.
public virtual int ContentHeight { get; }
Property Value
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
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
ContentWidth
The width of the embedded content view.
public virtual int ContentWidth { get; }
Property Value
MaxZoomScale
The maximum zoom scale value that is allowed.
public virtual float MaxZoomScale { get; }
Property Value
MinZoomScale
The minimal zoom scale value that is allowed.
public virtual float MinZoomScale { get; }
Property Value
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
Methods
FromElement(Element)
Converts an Element to an instance of this class.
public static IosScrollView FromElement(Element element)
Parameters
elementElementThe element to convert.
Returns
- IosScrollView
The IosScrollView.
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 IosScrollView FromPath(string path)
Parameters
pathstringThe search path.
Returns
- IosScrollView
The IosScrollView.
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 IosScrollView(Element)
Implicitly converts an Element to an instance of this class.
public static implicit operator IosScrollView(Element element)
Parameters
elementElementThe element to convert.
Returns
- IosScrollView
The IosScrollView.
Exceptions
- ArgumentNullException
If
elementisnull.- 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
pathstringThe search path.
Returns
- IosScrollView
The IosScrollView.
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.