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

Column

Column
is an object that formats with the arranged in a column, with above , etc.
Column
aligns each element horizontally in the specified way.
Column
leaves the specified number of x-heights of spacing between successive elements.
  • Possible alignments are:
Centercentered
Leftleft justified (default)
Rightright justified
"c" align on the character
{h,v}separate horizontal and vertical alignment
  • First[col] extracts the list that makes up a column.
  • The can be expressions of any kind, including graphics and controls.
  • You can enter text as an element of a Column by giving it as a string. You can use Text or Style to specify a particular style.
  • The following options can be given:
Alignment{Left,Baseline}horizontal and vertical alignment of items
BackgroundNonewhat background colors to use
BaselinePositionAutomaticwhat to align with a surrounding text baseline
BaseStyle{}base style specifications for the column
DefaultElement"\[Placeholder]"what element to insert in an empty item
DividersNonewhere to draw divider lines in the column
FrameNonewhere to draw frames in the column
FrameStyleAutomaticstyle to use for frames
ItemSizeAutomaticwidth and height of each item
ItemStyleNoneindividual styles for items
SpacingsAutomatichorizontal and vertical spacings
  • Common settings for Frame include:
Noneno frame
Trueframe around the whole column
Allframe around every item in the column
{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
  • With settings of the form , if there are more specified than items in the column, from the beginning are used for the first items, and ones from the end are used for the last items.
  • Column will not change the size of graphics or other objects that have explicit ImageSize settings.
  • For a column of n elements, Dividers and Spacings can specify settings for the gaps between elements, starting before the first element, and ending after the last element.
specapply spec to all gaps between items
{specx,specy}apply to successive horizontal and vertical gaps
Axisaxis of the middle row in the column (default)
Baselinebaseline of the middle row in the column
Bottombottom of the whole column
Centerhalfway from top to bottom
Toptop of the whole column
{i,pos}position pos in element i
  • The settings for BaseStyle are appended to the default style typically given by the style in the current stylesheet.
Display as a column:
Center each element:
Display as a column:
In[1]:=
Click for copyable input
Out[1]=
 
Center each element:
In[1]:=
Click for copyable input
Out[1]=
Add a frame around the column:
Set the background:
Use alternating background colors:
Set the item size for line breaking:
Align within the column:
Change the overall background color:
Change the background color of an individual row:
Alternate the background color:
Align the column with surrounding text:
Draw all dividers:
Only draw exterior dividers:
Draw only interior dividers:
Draw custom dividers:
Use negative position indices:
Draw outer column dividers:
Use negative position indices:
Frame all elements:
Frame only the exterior:
Frame specific elements:
Set the style for the frame:
Control the size of an item and possibly force linewrapping:
By setting ItemSize the content will have a linebreak:
Change the overall style:
Change the style for a specific element:
Dynamically change the element being styled:
Dynamically change the style of a specific element:
Change the spacing between elements:
Column is a special case of Grid:
New in 6