"columnWidth"

Gets or sets the width of a table column in pixels.

Synopsis

setValue( string shape, "columnWidth", int index, int pixelWidth);

getValue( string shape, "columnWidth", int index, int &pixelWidth);

shape.columnWidth( int index, int pixelWidth);

Parameters

Parameter Description
shape Name of the object (table)
index Column index, starting from 0
pixelWidth The width of a column in pixels

Description

Gets or sets the width of table columns.

Example 1

The example sets the width of the column number two to 110 pixels.

main()
{
  int index = 1; //column index (index begins from 0)
  int pixelWidth = 110; //the width (pixels) to be set
  Table1.columnWidth(index,pixelWidth);
  DebugN(index); //print the column index
}

Example 2

The example gets the width of the column number two.

main()
{
  int index = 1; //column index (index begins from 0)
  int pixelWidth; //variable for saving the width
  getValue("Table1", "columnWidth", index, pixelWidth);
  DebugN(pixelWidth); //prints the column width
}

Assignment

Table