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

Pane

Updated In 8 Graphic
Pane[expr]
displays as a pane containing expr.
Pane
makes the pane be w printer's points wide, linewrapping the contents if necessary.
Pane
makes the pane be w points wide and h points high, shrinking the contents if necessary.
  • The following options can be given:
Alignment{Automatic,Automatic}how to align objects in the display area
AppearanceElementsAutomaticelements to include in the displayed pane
BaselinePositionAutomaticwhat to align with a surrounding text baseline
BaseStyle{}base style specifications for the pane
ContentPaddingTruewhether to shrink the margins tightly around the contents
ImageMargins0margins to add outside the display area
ImageSizeAutomaticthe overall image size of the displayed pane
ImageSizeActionAutomaticwhat to do if the content size does not match the image size
ScrollbarsFalsewhether to include scrollbars
ScrollPosition{0,0}scroll position if scrolling is enabled
  • With a typical default stylesheet, Pane[expr] with no additional options displays exactly like expr.
  • The setting ImageSizeAction makes the contents of the pane scrollable if necessary.
  • The settings for BaseStyle are appended to the default style typically given by the style in the current stylesheet.
Wrap at a 200-point width:
Wrap at a 200-point width:
In[1]:=
Click for copyable input
Out[1]=
Specify both vertical and horizontal alignment:
Specify resizable Pane by using AppearanceElements:
Create resizable graphics using ImageSize->Full:
By default, Pane is resizable if Scrollbars->True:
Use AppearanceElements->None to disable resizing:
Align with surrounding text:
Add margins evenly around the pane:
Specify different margins on each side:
ImageSize and the second argument have the same effect:
Specify the overall size of the pane:
The default for ImageSizeAction is :
Use to fit all data in the pane:
Use to allow scrolling on mouse drag:
Create Pane with automatic scrollbars:
Create Pane with only vertical or horizontal scrollbar:
Disable resizing of Pane contents while allowing scrollbars:
Specify the initial position of the scrollbars (in pixels):
Force fixed width lines in a SlideView:
A Pane is treated as an unbroken rectangular region for purposes of line breaking:
New in 6 | Last modified in 8