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
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
Columns
Gets all columns in the table.
public IList<Column> Columns { get; }
Property Value
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
SelectedColumns
Gets all selected columns in the table.
public IList<Column> SelectedColumns { get; }
Property Value
SelectedRows
Gets all selected rows in the table.
public IList<Row> SelectedRows { get; }
Property Value
Methods
FromElement(Element)
Converts an Element to an instance of this class.
public static Table FromElement(Element element)
Parameters
elementElementThe element to convert.
Returns
- Table
The Table.
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 Table FromPath(string path)
Parameters
pathstringThe search path.
Returns
- Table
The Table.
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 Table(Element)
Implicitly converts an Element to an instance of this class.
public static implicit operator Table(Element element)
Parameters
elementElementThe element to convert.
Returns
- Table
The Table.
Exceptions
- ArgumentNullException
If
elementisnull.- 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
pathstringThe search path.
Returns
- Table
The Table.
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.