This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

ItemSize

ItemSize
is an option for Grid, Column, and related constructs that specifies the sizes to allow for items.
  • Typical basic settings include:
Automaticseparately size items to fit within the total formatting width
Allmake all items the same width and height
Fullallow every item its full width and height
wgive all items width w
Scaled[s]give all items a fraction s of the total formatting width
{w,h}make all items the specified width and height
  • In Grid, w is measured in ems, and h in line heights. In GraphicsGrid, w and h are both measured in absolute printer's points.
  • The settings for ItemSize can be given as follows to apply separately to different items:
specapply spec to all items
{specx}apply at successive horizontal positions
{specx,specy}apply at successive horizontal and vertical positions
  • 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
Make each item a fixed number of character widths wide:
Make each column a fraction of the document width:
ItemSize->Automatic line-wraps textual elements at the page width:
Make each item a fixed number of character widths wide:
In[1]:=
Click for copyable input
Out[1]=
 
Make each column a fraction of the document width:
In[1]:=
Click for copyable input
Out[1]=
 
ItemSize->Automatic line-wraps textual elements at the page width:
In[1]:=
Click for copyable input
Out[1]=
Leave the same amount of space for all items:
Draw items big enough to fit all contents without line breaks:
Set a minimum height for all items:
Controls and graphics will by default expand to fit the available area:
New in 6