tblIRule GetTextColor

Returns the text color that should be applied on a cell that passes this rule.

Syntax

tblIRule_handle GetTextColor

Application

Tcl Query

Description

This command retrieves the text color that should be applied on a cell that passes this rule. Returns the text color as an Integer between 0 and 63 or an empty string.

Example

set t [hw::GetT]
set activetableHandle [hwi GetActiveClientHandle ch$t]
set ruleid [ch$t AddRule]
set ruleHandle [$activetableHandle GetRuleHandle rh$ruleid $ruleid]
$ruleHandle SetCellList "A1 A2 B1 B2"
$ruleHandle SetBackgroundColor 3
$ruleHandle SetTextColor 0
puts "Text Color [$ruleHandle GetTextColor] will be applied on cells that pass rule $ruleid "
$ruleHandle SetValue 10
$ruleHandle SetOperator ">"
$ruleHandle ReleaseHandle

Errors

None.