WOLFRAM

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)Summary of the most common use cases

Wrap at a 200-point width:

Out[1]=1

Scope  (4)Survey of the scope of standard use cases

Specify a width, accepting the default height:

Out[1]=1

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

Out[1]=1

Specify an exact width and height. clipping if necessary:

Out[1]=1

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

Out[1]=1

Options  (15)Common values & functionality for each option

Alignment  (1)

Specify both vertical and horizontal alignment:

Out[1]=1

AppearanceElements  (2)

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

Out[1]=1

Create resizable graphics using ImageSize->Full:

Out[2]=2

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

Out[1]=1

Use AppearanceElements->None to disable resizing:

Out[2]=2

BaselinePosition  (1)

Align with surrounding text:

Out[1]=1

ImageMargins  (1)

Add margins evenly around the pane:

Out[1]=1

Specify different margins on each side:

Out[2]=2

ImageSize  (3)

ImageSize and the second argument have the same effect:

Out[1]=1

Specify the overall size of the pane:

Out[1]=1

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

Out[1]=1

ImageSizeAction  (3)

The default for ImageSizeAction is "Clip":

Out[1]=1

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

Out[1]=1

Use "Scrollable" to allow scrolling on mouse drag:

Out[1]=1

Scrollbars  (3)

Create Pane with automatic scrollbars:

Out[1]=1

Create Pane with only vertical or horizontal scrollbar:

Out[1]=1

Disable resizing of Pane contents while allowing scrollbars:

Out[1]=1

ScrollPosition  (1)

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

Out[1]=1
Out[2]=2

Applications  (1)Sample problems that can be solved with this function

Force fixed width lines in a SlideView:

Out[1]=1

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:

Out[1]=1
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).

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 ]}

@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 ]}

@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 ]}