Table of Contents

Class Row

Namespace
Ranorex
Assembly
Ranorex.Core.dll

Represents a table row.

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

Constructors

Row()

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

protected Row()

Row(Element)

Creates a new Row adapter instance.

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

Cells

Gets the cells contained in the row.

public IList<Cell> Cells { get; }

Property Value

IList<Cell>

The cells in the row.

Index

The index of the row in the table.

public virtual int Index { get; }

Property Value

int

RequiredCapabilities

Capabilities required by the adapter implementation.

protected override string[] RequiredCapabilities { get; }

Property Value

string[]

Selected

True if the row is currently selected.

public virtual bool Selected { get; set; }

Property Value

bool

Exceptions

SetAttributeFailedException

Thrown if setting the attribute value failed.

Methods

FromElement(Element)

Converts an Element to an instance of this class.

public static Row FromElement(Element element)

Parameters

element Element

The element to convert.

Returns

Row

The Row.

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

Parameters

path string

The search path.

Returns

Row

The Row.

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.

Select()

Selects the entire row.

public virtual void Select()

Exceptions

ActionFailedException

Thrown if invoking the action failed.

Operators

implicit operator Row(Element)

Implicitly converts an Element to an instance of this class.

public static implicit operator Row(Element element)

Parameters

element Element

The element to convert.

Returns

Row

The Row.

Exceptions

ArgumentNullException

If element is null.

CapabilityNotSupportedException

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

implicit operator Row(string)

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

public static implicit operator Row(string path)

Parameters

path string

The search path.

Returns

Row

The Row.

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.