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

Item

Updated In 8 Graphic
Item
represents an item within constructs such as Grid, Overlay, and Manipulate that displays with expr as the content, and with the specified options applied to the region containing expr.
  • The following options can typically be given:
AlignmentAutomaticalignment within the containing region
BackgroundNonebackground color for the containing region
ControlPlacementAutomaticwhen used in Manipulate, where controls should be placed
FrameFalsewhether to include a frame around the containing region
FrameStyleAutomaticstyle for the frame
ItemSizeAutomaticoverall size allowed for the item
  • Frame->True specifies that a frame should be drawn around all edges of the item.
  • Frame specifies what should be drawn on each edge of the item.
  • Item effectively modifies the properties of a parent function which supports Item. If Item is not used inside of a function that supports it, the properties specified by Item will not be visible.
Put a frame around the first element in a grid:
Draw the first element of the grid with a red background:
Put a frame around the first element in a grid:
In[1]:=
Click for copyable input
Out[1]=
 
Draw the first element of the grid with a red background:
In[1]:=
Click for copyable input
Out[1]=
Draw a frame on certain faces of the item:
Center an annotation of a Manipulate:
Set alignments of individual objects in an Overlay:
Item will apply its options to an entire spanning region:
Item also works in constructs that are implemented using Grid, such as MatrixForm:
Also TableForm:
Options which are irrelevant to the parent of the Item are ignored:
Change the alignment for a single item:
Change the background for a single item:
Individually control the placement of an annotation:
Change the frame of a single item:
Remove the frame of a single item:
Change the frame style of a single item:
Change the size of a single item:
If Item is not the top-most item in the child of a function that supports Item, it will not work:
In most cases, it is easy to move Item to be the top-most child:
The background of an Item can blend with the ambient background color:
However, the background does not blend with a background specified directly to the parent Grid:
Highlight special elements of a large matrix to see its structure:
New in 6 | Last modified in 8