Accessors for class IliTableSelection

Properties

Methods

Description

This class describes a selection in a table. It is mainly used in conjunction with the IliTableGadget class.
Here is an example that selects rows 2 and 4 in a table gadget:
     tg = Application.MyPanel.MyTableGadget;
     sel = tg.selection;

     sel.setRow(2);
     sel.addRow(4);

     tg.selection = sel;

TypeNameDescriptionNotes
IntcolumnContains the column position of the selected column or cell.
IntcolumnsCountContains the number of selected columns.read-only
IntrowContains the row position of the selected row or cell.
IntrowsCountContains the number of selected rows.read-only
IliTableSelectionTypetypeContains the type of selection. It can be one of the following:
  • IliSelectNone

  • IliSelectAll

  • IliSelectColumn

  • IliSelectRow

  • IliSelectCell

VoidaddColumn(Int colno)Adds to the selection the column whose position in the table gadget is colno. The type of selection must be IliSelectColumn.
VoidaddRow(Int rowno)Adds to the selection the row whose position in the table gadget is rowno. The type of selection must be IliSelectRow.
BooleancontainsCell(Int rowno, Int colno)Return true if the cell whose row is given by rowno and whose column is given by colno is included in the selection.
BooleancontainsColumn(Int colno)Return true if the column whose position in the table gadget is given by colno is included in the selection.
BooleancontainsRow(Int rowno)Return true if the row whose position in the table gadget is given by rowno is included in the selection.
IntgetColumnAt(Int idx)Returns the position of the column whose index in the selection is idx. The idx parameter ranges from 0 to columnsCount -1. The returnedvalue indicates the position of the column in the table gadget while the idx parameter indicates the position of the column within the selection.
IntgetRowAt(Int idx)Returns the position of the row whose index in the selection is idx. The idx parameter ranges from 0 to rowsCount -1. The returnedvalue indicates the position of the row in the table gadget while the idx parameter indicates the position of the row within the selection.
BooleanisCell()This property is true if one cell is selected. In this case, the selected cell is identified by the column and row properties.
BooleanisColumn()This property is true if one column is selected. In this case, the selected column is identified by the column property.
BooleanisColumnOrCell()This property is true if one column or one cell is selected.
BooleanisEmpty()This property is true if the selection is empty.
BooleanisFull()This property is true if the entire table gadget is selected.
BooleanisMulti()This property is true if the selection contains more than one row or column.
BooleanisRow()This property is true if one row is selected. In this case, the selected row is identified by the row property.
BooleanisRowOrCell()This property is true if one row or one cell is selected.
VoidremoveColumn(Int colno)Removes from the selection the column whose position in the table gadget is colno.
VoidremoveRow(Int rowno)Removes from the selection the row whose position in the table gadget is rowno.
VoidsetCell(Int rowno, Int colno)Sets the type to IliSelectCell and sets the cell position of the selected cell.
VoidsetColumn(Int colno)Sets the type to IliSelectColumn and sets the column position of the selected column.
VoidsetEmpty()Sets the selection as empty. The type is set to IliSelectNone.
VoidsetRow(Int rowno)Sets the type to IliSelectRow and sets the row position of the selected row.