tblITableEditor SetCellAlignment

Sets the text alignment on the selected cell.

Syntax

tblITableEditor_handle SetCellAlignment cellName, alignment

Application

Tcl Query

Description

Gets the text color corresponding to the queried cell.

Inputs

cellName
The name of the cell. For example, A1.
alignment
The text alignment. Valid alignment values are:
left
center
right
""

Example

set t [hw::GetT]
set activetableHandle [hwi GetActiveClientHandle ch$t]
$activetableHandle SetCellData A1 "Max"
puts "Text Alignment of cell A1 is [$activetableHandle GetCellAlignment A1]"
$activetableHandle SetCellAlignment A1 center
puts "Text Alignment of cell A1 is [$activetableHandle GetCellAlignment A1]"
$activetableHandle ReleaseHandle

Errors

Returns success(0) or an error code.