Interface ITableBase<T>
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
Title
The title of the object.
string Title { get; }
Property Value
Methods
ActivateCell(uint, string)
Double-clicks a cell by row index and column name.
void ActivateCell(uint row, string column)
Parameters
ActivateCell(uint, uint)
Double-clicks a cell by row and column index.
void ActivateCell(uint row, uint columnIndex)
Parameters
DeselectColumn(params string[])
Unselects the specified columns by names.
void DeselectColumn(params string[] columns)
Parameters
columnsstring[]The names of the columns to deselect.
DeselectColumn(params uint[])
Unselects the specified columns by indexes.
void DeselectColumn(params uint[] columnIndices)
Parameters
columnIndicesuint[]The 1-based indexes of the columns to deselect.
DeselectRow(params uint[])
Unselects the specified rows.
void DeselectRow(params uint[] rowIndices)
Parameters
rowIndicesuint[]The 1-based row indices.
DeselectRowRange(uint, uint)
Unselects the specified rows.
void DeselectRowRange(uint indexFrom, uint indexTo)
Parameters
indexFromuintThe 1-based index of the first row in the range.
indexTouintThe 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
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
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
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
textstringThe text to search for.
columnstringThe column to search.
startFromRowuintThe 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
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
textstringThe text to search for.
columnIndexuintThe 1-based index of the column to search.
startFromRowuintThe 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
SelectCell(uint, uint)
Selects a cell by row and column index.
void SelectCell(uint row, uint columnIndex)
Parameters
SelectColumn(params string[])
Selects the specified columns by column names.
void SelectColumn(params string[] columns)
Parameters
columnsstring[]The names of the columns to select.
SelectColumn(params uint[])
Selects the specified columns by column indexes.
void SelectColumn(params uint[] columns)
Parameters
columnsuint[]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
rowsuint[]The 1-based row numbers.
SelectRowRange(uint, uint)
Selects the specified row range.
void SelectRowRange(uint indexFrom, uint indexTo)