Table of Contents

Class Table

Namespace
Ranorex
Assembly
Ranorex.Core.dll

Represents a table or grid, consisting of rows and columns.

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

Constructors

Table()

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

protected Table()

Table(Element)

Creates a new Table adapter instance.

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

Columns

Gets all columns in the table.

public IList<Column> Columns { get; }

Property Value

IList<Column>

The columns.

RequiredCapabilities

Capabilities required by the adapter implementation.

protected override string[] RequiredCapabilities { get; }

Property Value

string[]

Rows

Gets all rows in the table.

public IList<Row> Rows { get; }

Property Value

IList<Row>

The rows.

SelectedColumns

Gets all selected columns in the table.

public IList<Column> SelectedColumns { get; }

Property Value

IList<Column>

The columns.

SelectedRows

Gets all selected rows in the table.

public IList<Row> SelectedRows { get; }

Property Value

IList<Row>

The rows.

Methods

FromElement(Element)

Converts an Element to an instance of this class.

public static Table FromElement(Element element)

Parameters

element Element

The element to convert.

Returns

Table

The Table.

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

Parameters

path string

The search path.

Returns

Table

The Table.

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

Implicitly converts an Element to an instance of this class.

public static implicit operator Table(Element element)

Parameters

element Element

The element to convert.

Returns

Table

The Table.

Exceptions

ArgumentNullException

If element is null.

CapabilityNotSupportedException

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

implicit operator Table(string)

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

public static implicit operator Table(string path)

Parameters

path string

The search path.

Returns

Table

The Table.

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.