AllowedDimensions
Details
- Possible settings for AllowedDimensions are:
-
Automatic the dimensions of the Grid are unconstrained {cols,rows} the dimensions of the Grid are constrained to exactly cols columns and rows rows {{colsmin,colsmax},{rowsmin,rowsmax}} between colsmin and colsmax columns are allowed, and between rowsmin and rowsmax rows are allowed
Examples
open all close allBasic Examples (3)
Create a Grid that can have between 2 and 4 columns and between 3 and 5 rows:
Grid[{{a, b}, {c, d}, {e, f}}, AllowedDimensions -> {{2, 4}, {3, 5}}]Create a Grid that can have any number of rows, but only 2 columns:
Grid[{{a, b}, {c, d}, {e, f}}, AllowedDimensions -> {2, Automatic}]Create a Grid that must have a minimum of 3 rows:
Grid[{{a, b}, {c, d}, {e, f}}, AllowedDimensions -> {Automatic, {3, Infinity}}]Properties & Relations (1)
The AllowedDimensions option only applies to interactive editing. It does not prevent Grid from producing output that does not comply with the specified dimensions:
Grid[{{a}}, AllowedDimensions -> {3, 3}]History
Text
Wolfram Research (2012), AllowedDimensions, Wolfram Language function, https://reference.wolfram.com/language/ref/AllowedDimensions.html.
CMS
Wolfram Language. 2012. "AllowedDimensions." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/AllowedDimensions.html.
APA
Wolfram Language. (2012). AllowedDimensions. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AllowedDimensions.html
BibTeX
@misc{reference.wolfram_2026_alloweddimensions, author="Wolfram Research", title="{AllowedDimensions}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/AllowedDimensions.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_alloweddimensions, organization={Wolfram Research}, title={AllowedDimensions}, year={2012}, url={https://reference.wolfram.com/language/ref/AllowedDimensions.html}, note=[Accessed: 12-June-2026]}