Class TabPageList
- Namespace
- Ranorex
- Assembly
- Ranorex.Core.dll
Represents a tab page list.
public class TabPageList : Adapter, IAdapter
- Inheritance
-
TabPageList
- Implements
- Inherited Members
Constructors
TabPageList()
Creates a new TabPageList adapter instance. This constructor is used internally by the Ranorex Core Framework for performance issues!
protected TabPageList()
TabPageList(Element)
Creates a new TabPageList adapter instance.
public TabPageList(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
this[string]
Gets the TabPage with the specified title.
public TabPage this[string tabPageTitle] { get; }
Parameters
tabPageTitlestring
Property Value
- TabPage
The tab page.
Exceptions
- ElementNotFoundException
If no tab page with that title is found.
RequiredCapabilities
Capabilities required by the adapter implementation.
protected override string[] RequiredCapabilities { get; }
Property Value
- string[]
Tabs
Gets the tab pages contained in the TabPageList.
public IList<TabPage> Tabs { get; }
Property Value
Methods
FromElement(Element)
Converts an Element to an instance of this class.
public static TabPageList FromElement(Element element)
Parameters
elementElementThe element to convert.
Returns
- TabPageList
The TabPageList.
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 TabPageList FromPath(string path)
Parameters
pathstringThe search path.
Returns
- TabPageList
The TabPageList.
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 TabPageList(Element)
Implicitly converts an Element to an instance of this class.
public static implicit operator TabPageList(Element element)
Parameters
elementElementThe element to convert.
Returns
- TabPageList
The TabPageList.
Exceptions
- ArgumentNullException
If
elementisnull.- CapabilityNotSupportedException
If the element does not support the capabilities required by this adapter.
implicit operator TabPageList(string)
Implicitly converts a string to an instance of this class by searching the root.
public static implicit operator TabPageList(string path)
Parameters
pathstringThe search path.
Returns
- TabPageList
The TabPageList.
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.