setCommonFormat
Syntax
<Path>.setCommonFormat(Column:any[, Column:any, ...], CommonFormat:boolean) |
The method setCommonFormat assigns the same format to all columns of the DataTable designated by <Path> within the designated range.
Parameters
The parameters Column of data type any designate the columns.
The parameter CommonFormat of data type boolean activates (true) or deactivates the Common format (false).
Note:
If you would like define the common format of a column of data type table in a method, you have to create a sub-table and then format this table with the method setDataType:
Example
-- activate common format for the columns 3 to 5, for column 7 and for the |
MyDataTable.setDataType(3,"Table") |
Related Topics
Related Topics
Methods for Columns of the DataTablecutColumn
getAlignmentColumn (DataTable)
getBackgroundColorColumn (DataTable)
getColumnNo
getColumnWidth (DataTable)
getColumnYDim
getDataType
getEditorRightsColumn (DataTable)
getFontColorColumn (DataTable)
getFontSizeColumn (DataTable)
getFormatString (DataTable)
getVisibility (DataTable)
insertColumn
isAlignmentColumn (DataTable)
setAlignmentColumn (DataTable)
setBackgroundColorColumn (DataTable)
setColumnWidth (DataTable)
setDataType
setDataTypeDefault
setEditorRightsColumn (DataTable)
setFontColorColumn (DataTable)
setFontSizeColumn (DataTable)
setFormatString (DataTable)
setVisibility (DataTable)