The object for applying styles to columns in a table.
- Apple News Format 1.7+
The background color for the table column.
If this property is omitted, the background is transparent.
The cell background color is highest priority, followed by the column, and finally the row. All three colors are applied, meaning that non-opaque values can cause combined colors. For example, using a red row together with a blue column, both with 50% opacity, creates a purple cell.
An array of styles to be applied only to columns that meet specified conditions. This can be used to create a table with alternating column background colors.
The stroke style for the divider lines between columns.
The minimum width of the columns, as a number in points or using the available units of measure for components. See Specifying Measurements for Components.
The relative column width. This value influences the distribution of column width but does not dictate any exact values. To set an exact minimum width, use
It might be useful to think of the value of
width as a percentage of the component’s width. For example, if you know that one column’s width should be about half that of the whole component, and another should be about a quarter of the component width, use values of
You can apply styles that affect the look of the columns in your table, including a column background color, the color for divider lines between columns, and the minimum width for a column.
You can also set up conditional column styles—styles that are applied to columns that meet certain criteria. For example, you could apply a background color to all odd-numbered columns. See ConditionalTableColumnStyle.
This object can be used in TableStyle.