Pane

Pane[expr]

displays as a pane containing expr.

Pane[expr,w]

makes the pane be w printer's points wide, linewrapping the contents if necessary.

Pane[expr,{w,h}]

makes the pane be w points wide and h points high, shrinking the contents if necessary.

Details and Options

Examples

open allclose all

Basic Examples  (1)

Wrap at a 200-point width:

Scope  (4)

Specify a width, accepting the default height:

Specify an exact width and height, adding space if necessary:

Specify an exact width and height. clipping if necessary:

Use UpTo to set the maximum dimension while allowing for smaller values:

Options  (15)

Alignment  (1)

Specify both vertical and horizontal alignment:

AppearanceElements  (2)

Specify resizable Pane by using AppearanceElements->{"ResizeArea"}:

Create resizable graphics using ImageSize->Full:

By default, Pane is resizable if Scrollbars->True:

Use AppearanceElements->None to disable resizing:

BaselinePosition  (1)

Align with surrounding text:

ImageMargins  (1)

Add margins evenly around the pane:

Specify different margins on each side:

ImageSize  (3)

ImageSize and the second argument have the same effect:

Specify the overall size of the pane:

Specify a maximum width and use the natural height of the contents:

ImageSizeAction  (3)

The default for ImageSizeAction is "Clip":

Use "ShrinkToFit" to fit all data in the pane:

Use "Scrollable" to allow scrolling on mouse drag:

Scrollbars  (3)

Create Pane with automatic scrollbars:

Create Pane with only vertical or horizontal scrollbar:

Disable resizing of Pane contents while allowing scrollbars:

ScrollPosition  (1)

Specify the initial position of the scrollbars (in pixels):

Applications  (1)

Force fixed width lines in a SlideView:

Properties & Relations  (1)

A Pane is treated as an unbroken rectangular region for purposes of line breaking:

Introduced in 2007
 (6.0)
 |
Updated in 2008
 (7.0)
2010
 (8.0)
2019
 (12.0)