tblITableEditor ClearPropertyOnCellList

Clears all properties (font, text color, background color or alignment) present in the specified cells.

Syntax

tblITableEditor_handle ClearPropertyOnCellList cellList

Application

Tcl Query

Description

Clears all properties (font, text color, background color or alignment) present in the specified cells.

Inputs

cellList
List of cell names. For example, "A1", "A2", "B1", B2

Example

set t [hw::GetT]
set activetableHandle [hwi GetActiveClientHandle ch$t]
$activetableHandle SetCellData A1 "Max"
$activetableHandle SetCellData A2 {max(p1w1c1.y)}
$activetableHandle SetCell SetCellBackgroundColor Color A2 3
$activetableHandle SetCellAlignment A1 center
$activetableHandle SetCellData B1 "Max"
$activetableHandle SetCellAlignment B1 center
puts "Cells having property are : [$activetableHandle GetCellsHavingProperty]"
$activetableHandle ClearPropertyOnCellList "A1 B1"
puts "Cells having property are : [$activetableHandle GetCellsHavingProperty]"
$activetableHandle ReleaseHandle

Errors

Returns Success(0) or an error code.