Pane
Details and Options
- The following options can be given:
-
- 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 all close allBasic 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)
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:
History
Introduced in 2007 (6.0) | Updated in 2008 (7.0) ▪ 2010 (8.0) ▪ 2019 (12.0)
Text
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.
APA
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: 04-January-2026]}
BibLaTeX
@online{reference.wolfram_2025_pane, organization={Wolfram Research}, title={Pane}, year={2019}, url={https://reference.wolfram.com/language/ref/Pane.html}, note=[Accessed: 04-January-2026]}