.. highlightlang:: us .. _tablesetbrushindex: TableSetBrushIndex ================== .. index:: TableSetBrushIndex .. us.tag TableSetBrushIndex table.brush New400 :ref:`TableSetBrushIndex` sets the brush indices. .. function:: bool = TableSetBrushIndex(hTable, rmBrushIndex) bool = TableSetBrushIndex(hTable, rmBrushIndex, rvSel) .. us.return **Return Value** If the function succeeds, the return value *bool* is TRUE (1); otherwise it is FALSE (0). .. us.params **Parameters** .. uparam:: hTable Identifies the table object. .. uparam:: rmBrushIndex *rmBrushIndex* is a matrix with the indices of fill colors. The index is the row number in the brush table returned by :ref:`TableGetBrushList`. Transparent cells have the index 0. .. uparam:: rvSel *rvSel* is a vector with 4 elements: .. list-table:: :header-rows: 1 * - Element - Description * - rvSel[1] - Left column of selection * - rvSel[2] - Top row of selection * - rvSel[3] - Right column of selection * - rvSel[4] - Bottom row of selection Row an column numbering starts with 1. .. seealso:: :ref:`overview-table`, :ref:`TableGetBrushList`, :ref:`TableGetBrushIndex`, :ref:`TableAddBrush` :sub:`id-606896`