BUILT-IN MATHEMATICA SYMBOL

# ItemStyle

ItemStyle
is an option for Grid, Column, and related constructs that specifies styles to use for items.

## DetailsDetails

• ItemStyle->s specifies that all items should use style specification s.
• Item style specifications can include all options to Item, as well as options to Style. Directive[opt1, opt2, ...] can be used to specify multiple options.
• Item style specifications are applied to the complete region of an item, not just its contents, so that, for example, backgrounds extend to the edge of the item.
• The settings for ItemStyle can be given as follows to apply separately to different items:
•  spec apply spec to all items {specx} apply at successive horizontal positions {specx,specy} apply at successive horizontal and vertical positions also allow explicit rules for individual elements
• The can have the following forms:
•  {s1,s2,...,sn} use through ; then use defaults {{c}} use c in all cases {{c1,c2}} alternate between and {{c1,c2,...}} cycle through all {s,{c}} use s, then repeatedly use c {s1,{c},sn} use , then repeatedly use c, but use at the end {s1,s2,...,{c1, c2, ... }, sm, ... , sn} use the first sequence of at the beginning, then cyclically use the , then use the last sequence of at the end {s1,s2,...,{},sm,...,sn} use the first sequence of at the beginning and the last sequence at the end {i1->v1,i2->v2,...} specify what to use at positions {spec,rules} use rules to override specifications in spec
• If multiple or rules specify styles for a particular element, the styles are combined in the order they appear.

## ExamplesExamplesopen allclose all

### Basic Examples (3)Basic Examples (3)

Style all the elements in the grid:

 Out[1]=

Style the first row:

 Out[1]=

Use a style from the current stylesheet:

 Out[1]=