Promotic
Login logon

ColSpan - property of the PmfTableCell object

Description:
This property is used for setting the number of columns across which a given cell should span.
This allows you to enable or disable horizontal cell merging, where a single cell occupies the space of several adjacent cells to the right of that cell.
Adjacent cells are not visible in the table, but you can access the objects (PmfTableCell) of these cells using of the GetCell method.
If the cell merging is enabled in both the horizontal and vertical directions (see RowSpan property), then the cell is expanded to cover the entire rectangular area defined by the specified number of columns and rows.
Syntax:
Long ColSpan
Values:
1 (default) - Turns off horizontal cell merging. The cell will be as wide as the column it belongs to.
n - Enables horizontal cell merging. The cell will extend across "n" columns to the right of the left edge of the cell, including the column to which the cell belongs.
-1 - Enables horizontal cell merging. The cell will extend across all columns to the right of the left edge of the cell, up to the right edge of the last column in that area of the table.
Note:
Property access for read and write.
 
This property is also functional in web panels.
See also:
Example:
JavaScriptSelect and copy to clipboard

oCell.ColSpan = 3;   // Writing into the property
var nColSpan = oCell.ColSpan;   // Reading from the property

History:
Pm9.00.35: Created
PROMOTIC 9.0.35 SCADA system documentation MICROSYS, spol. s r.o.

Send page remark Contact responsible person
© MICROSYS, spol. s r.o.Update cookies preferences