Pane
✖
Pane
Details and Options


- The following options can be given:
-
Alignment {Automatic,Automatic} how to align objects in the display area AppearanceElements Automatic elements to include in the displayed pane BaselinePosition Automatic what to align with a surrounding text baseline BaseStyle {} base style specifications for the pane ContentPadding True whether to shrink the margins tightly around the contents FrameMargins Automatic margins inside the frame of the pane ImageMargins 0 margins to add outside the display area ImageSize Automatic the overall image size of the displayed pane ImageSizeAction Automatic what to do if the content size does not match the image size Scrollbars False whether 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.
- Pane[expr,w] is equivalent to Pane[expr,ImageSize->w,ImageSizeAction->"Clip"].
- Pane[expr,{w,h}] is equivalent to Pane[expr,ImageSize->{w,h},ImageSizeAction->"Clip"].
- Pane[expr,{w,h},Scrollbars->Automatic] effectively uses ImageSizeAction->"Clip".
- If w or h is specified as an UpTo expression, then the value is treated as the maximum width or height. Pane will use a smaller value if needed to trim whitespace around the contents.
- The setting ImageSizeAction->"Scrollable" makes the contents of the pane scrollable if necessary.
- Possible elements in AppearanceElements include "ResizeArea".
- The settings for BaseStyle are appended to the default style typically given by the "Pane" style in the current stylesheet.
Examples
open allclose allBasic Examples (1)Summary of the most common use cases
Scope (4)Survey of the scope of standard use cases
Specify a width, accepting the default height:

https://wolfram.com/xid/0gisk2-sr3lb

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

https://wolfram.com/xid/0gisk2-ytxcd

Specify an exact width and height. clipping if necessary:

https://wolfram.com/xid/0gisk2-h5b

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

https://wolfram.com/xid/0gisk2-cbh0wq

Options (15)Common values & functionality for each option
Alignment (1)
AppearanceElements (2)
Specify resizable Pane by using AppearanceElements->{"ResizeArea"}:

https://wolfram.com/xid/0gisk2-5i5a9l

Create resizable graphics using ImageSize->Full:

https://wolfram.com/xid/0gisk2-dzbof3

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

https://wolfram.com/xid/0gisk2-6f21bd

Use AppearanceElements->None to disable resizing:

https://wolfram.com/xid/0gisk2-r89j7k

BaselinePosition (1)
ImageMargins (1)
ImageSize (3)
ImageSize and the second argument have the same effect:

https://wolfram.com/xid/0gisk2-fqwgii

Specify the overall size of the pane:

https://wolfram.com/xid/0gisk2-hnllm

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

https://wolfram.com/xid/0gisk2-epc6d9

ImageSizeAction (3)
The default for ImageSizeAction is "Clip":

https://wolfram.com/xid/0gisk2-mv1bsw

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

https://wolfram.com/xid/0gisk2-bhlq32

Use "Scrollable" to allow scrolling on mouse drag:

https://wolfram.com/xid/0gisk2-ztucl4

Scrollbars (3)
Create Pane with automatic scrollbars:

https://wolfram.com/xid/0gisk2-oz7xsr

Create Pane with only vertical or horizontal scrollbar:

https://wolfram.com/xid/0gisk2-2fg1ba

Disable resizing of Pane contents while allowing scrollbars:

https://wolfram.com/xid/0gisk2-t63aod

Applications (1)Sample problems that can be solved with this function
Properties & Relations (1)Properties of the function, and connections to other functions
A Pane is treated as an unbroken rectangular region for purposes of line breaking:

https://wolfram.com/xid/0gisk2-kmo

Wolfram Research (2007), Pane, Wolfram Language function, https://reference.wolfram.com/language/ref/Pane.html (updated 2019).
Text
Wolfram Research (2007), Pane, Wolfram Language function, https://reference.wolfram.com/language/ref/Pane.html (updated 2019).
Wolfram Research (2007), Pane, Wolfram Language function, https://reference.wolfram.com/language/ref/Pane.html (updated 2019).
CMS
Wolfram Language. 2007. "Pane." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/Pane.html.
Wolfram Language. 2007. "Pane." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/Pane.html.
APA
Wolfram Language. (2007). Pane. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Pane.html
Wolfram Language. (2007). Pane. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Pane.html
BibTeX
@misc{reference.wolfram_2025_pane, author="Wolfram Research", title="{Pane}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/Pane.html}", note=[Accessed: 08-June-2025
]}
BibLaTeX
@online{reference.wolfram_2025_pane, organization={Wolfram Research}, title={Pane}, year={2019}, url={https://reference.wolfram.com/language/ref/Pane.html}, note=[Accessed: 08-June-2025
]}