Table of Contents

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

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

this[string]

Gets the TabPage with the specified title.

public TabPage this[string tabPageTitle] { get; }

Parameters

tabPageTitle string

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

IList<TabPage>

The tab pages.

Methods

FromElement(Element)

Converts an Element to an instance of this class.

public static TabPageList FromElement(Element element)

Parameters

element Element

The element to convert.

Returns

TabPageList

The TabPageList.

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

Parameters

path string

The search path.

Returns

TabPageList

The TabPageList.

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

Implicitly converts an Element to an instance of this class.

public static implicit operator TabPageList(Element element)

Parameters

element Element

The element to convert.

Returns

TabPageList

The TabPageList.

Exceptions

ArgumentNullException

If element is null.

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

path string

The search path.

Returns

TabPageList

The TabPageList.

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.