Table of Contents

Interface ITableBase<T>

Namespace
HP.LFT.SDK.SAP.GUI
Assembly
HP.LFT.SDK.dll

The base interface for table, grid and APO grid objects in a SAP GUI for Windows application.

public interface ITableBase<T> : IEnabledProvider, IElement, ITestObject, ITestObjectDescriber, ILocationInfoProvider, ISupportsNativeObject where T : ITableCellBase

Type Parameters

T
Inherited Members
Extension Methods

Properties

Rows

The rows in the object.

ReadOnlyCollection<ITableRow<T>> Rows { get; }

Property Value

ReadOnlyCollection<ITableRow<T>>

Title

The title of the object.

string Title { get; }

Property Value

string

Methods

ActivateCell(uint, string)

Double-clicks a cell by row index and column name.

void ActivateCell(uint row, string column)

Parameters

row uint

The 1-based row index.

column string

The name of the column.

ActivateCell(uint, uint)

Double-clicks a cell by row and column index.

void ActivateCell(uint row, uint columnIndex)

Parameters

row uint

The 1-based row index.

columnIndex uint

The 1-based column index.

DeselectColumn(params string[])

Unselects the specified columns by names.

void DeselectColumn(params string[] columns)

Parameters

columns string[]

The names of the columns to deselect.

DeselectColumn(params uint[])

Unselects the specified columns by indexes.

void DeselectColumn(params uint[] columnIndices)

Parameters

columnIndices uint[]

The 1-based indexes of the columns to deselect.

DeselectRow(params uint[])

Unselects the specified rows.

void DeselectRow(params uint[] rowIndices)

Parameters

rowIndices uint[]

The 1-based row indices.

DeselectRowRange(uint, uint)

Unselects the specified rows.

void DeselectRowRange(uint indexFrom, uint indexTo)

Parameters

indexFrom uint

The 1-based index of the first row in the range.

indexTo uint

The 1-based index of the last row in the range.

FindAllRowsWithCellTextInColumn(string, string)

Finds all rows with the specified text in the specified column, by column name.

ReadOnlyCollection<ITableRow<T>> FindAllRowsWithCellTextInColumn(string text, string column)

Parameters

text string

The text to search for.

column string

The column to search.

Returns

ReadOnlyCollection<ITableRow<T>>

The rows. Null if text not found.

FindAllRowsWithCellTextInColumn(string, uint)

Returns all rows with the specified text in the specified column, by column index.

ReadOnlyCollection<ITableRow<T>> FindAllRowsWithCellTextInColumn(string text, uint columnIndex)

Parameters

text string

The text to search for.

columnIndex uint

The 1-based index of the column to search.

Returns

ReadOnlyCollection<ITableRow<T>>

The rows. Null if text not found.

FindRowWithCellTextInColumn(string, string)

Returns the first row in a column that contains the specified text, by column name.

ITableRow<T> FindRowWithCellTextInColumn(string text, string column)

Parameters

text string

The The text to search for.

column string

The column to search.

Returns

ITableRow<T>

The row. Null if text not found.

FindRowWithCellTextInColumn(string, string, uint)

Returns the next row in a column (by column name) that contains the specified text, starting the search at the specified row.

ITableRow<T> FindRowWithCellTextInColumn(string text, string column, uint startFromRow)

Parameters

text string

The text to search for.

column string

The column to search.

startFromRow uint

The 1-based index of the row from which to start the search.

Returns

ITableRow<T>

The row. Null if text not found.

FindRowWithCellTextInColumn(string, uint)

Returns the first row in a column that contains the specified text, by column index.

ITableRow<T> FindRowWithCellTextInColumn(string text, uint columnIndex)

Parameters

text string

The The text to search for.

columnIndex uint

The 1-based index of the column to search.

Returns

ITableRow<T>

The row. Null if text not found.

FindRowWithCellTextInColumn(string, uint, uint)

Returns the next row in a column (by column index) that contains the specified text, starting the search at the specified row.

ITableRow<T> FindRowWithCellTextInColumn(string text, uint columnIndex, uint startFromRow)

Parameters

text string

The text to search for.

columnIndex uint

The 1-based index of the column to search.

startFromRow uint

The 1-based index of the row from which to start the search.

Returns

ITableRow<T>

The row. Null if text not found.

SelectCell(uint, string)

Selects a cell by row index and column name.

void SelectCell(uint row, string column)

Parameters

row uint

The 1-based row index.

column string

The name of the column.

SelectCell(uint, uint)

Selects a cell by row and column index.

void SelectCell(uint row, uint columnIndex)

Parameters

row uint

The 1-based row index.

columnIndex uint

The 1-based column index.

SelectColumn(params string[])

Selects the specified columns by column names.

void SelectColumn(params string[] columns)

Parameters

columns string[]

The names of the columns to select.

SelectColumn(params uint[])

Selects the specified columns by column indexes.

void SelectColumn(params uint[] columns)

Parameters

columns uint[]

The 1-based indexes of the columns to select.

SelectRow(params uint[])

Selects the specified rows in the object.

void SelectRow(params uint[] rows)

Parameters

rows uint[]

The 1-based row numbers.

SelectRowRange(uint, uint)

Selects the specified row range.

void SelectRowRange(uint indexFrom, uint indexTo)

Parameters

indexFrom uint

The 1-based index of the first row in the range.

indexTo uint

The 1-based index of the last row in the range.