Row
Details and Options
- Row[list] by default formats the expri as if they appeared as successive elements in StandardForm input, with no extra space in between.
- The separator s can be any expression. Typical choices include:
-
" " a single-space character ", " a comma and space Spacer[w] a spacer w printer's points wide Invisible[expr] space as wide as the expression expr - When Row extends onto multiple lines, it chooses where to break just like an ordinary Wolfram Language expression, and inserts indentation on subsequent lines.
- The elements expri can be strings, graphics, or any other expressions.
- The expri are arranged so that their baselines or alignment points are aligned.
- The following options can be given:
-
Alignment {Left,Baseline} horizontal and vertical alignment of elements Background None what background colors to use BaselinePosition Automatic what to align with a surrounding text baseline BaseStyle {} base style specifications for the row Frame None whether to draw a frame FrameMargins Automatic margins to leave inside the frame FrameStyle Automatic styles to use for frames ImageMargins 0 margins to add outside the display area ImageSize Automatic the overall image size of the displayed row RoundingRadius 0 radius for rounded corners - Row[…] formats as a row of expressions in StandardForm, TraditionalForm, and OutputForm.
- In InputForm, Row[…] formats literally as Row[…].
- TextCell[Row[list],…] creates a text cell that directly contains strings and styled strings in list.
Examples
open all close allBasic Examples (2)
Scope (2)
Row can wrap onto several lines:
Row[Range[50], "."]Elements appear in StandardForm:
Row[{1 / x, a, 1 / x ^ 2}]Options (11)
Alignment (1)
Adjust the alignment within the ImageSize:
Grid[Table[Row[{1, 2, 3}, ImageSize -> {50, 50}, Alignment -> {i, j}], {j, {Top, Center, Bottom}}, {i, {Left, Center, Right}}], Frame -> All]Background (1)
BaselinePosition (1)
Editable (1)
FrameMargins (1)
Table[Row[{1, 22, 333}, Frame -> True, FrameMargins -> m], {m, {0, 10, 20}}]FrameMargins also applies to the background:
Table[Row[{1, 22, 333}, Frame -> True, Background -> Pink, FrameMargins -> m], {m, {0, 10, 20}}]FrameStyle (1)
ImageMargins (1)
ImageSize (1)
RoundingRadius (1)
Table[Row[{111, 2, 3333}, Frame -> True, RoundingRadius -> r], {r, 0, 9, 3}]RoundingRadius also applies to the background:
Table[Row[{111, 2, 3333}, Frame -> True, Background -> Pink, RoundingRadius -> r], {r, 0, 9, 3}]Applications (3)
Row[{x ^ 2 - 1, Factor[x ^ 2 - 1]}, " = "]Create a row of framed objects:
Row[Framed /@ Range[10]]Create a list of countries separated by continents:
TabView[(# -> Row[Flatten[{CountryData[#, "Name"]}], " "]&) /@ CountryData["Continents"]]Possible Issues (2)
FrameMargins and RoundingRadius have no visible effect unless Frame->True:
Row[{1, 22, 333}, Background -> Pink, FrameMargins -> 15, RoundingRadius -> 15]Use FrameStyle->None to use other options without adding a frame:
Row[{1, 22, 333}, Background -> Pink, FrameMargins -> 15, RoundingRadius -> 15, Frame -> True, FrameStyle -> None]Vertically spanning operators do not grow when passed in string form to Row:
Row[{"(", 1 / 2, "+", 1, ")"}]Use RawBoxes to make operators vertically span the contents:
Row[{RawBoxes["("], 1 / 2, RawBoxes["+"], 1, RawBoxes[")"]}]See Also
Tech Notes
Related Workflows
- Add Styling to Text ▪
- Create a Palette
Text
Wolfram Research (2007), Row, Wolfram Language function, https://reference.wolfram.com/language/ref/Row.html (updated 2008).
CMS
Wolfram Language. 2007. "Row." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2008. https://reference.wolfram.com/language/ref/Row.html.
APA
Wolfram Language. (2007). Row. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Row.html
BibTeX
@misc{reference.wolfram_2026_row, author="Wolfram Research", title="{Row}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/Row.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_row, organization={Wolfram Research}, title={Row}, year={2008}, url={https://reference.wolfram.com/language/ref/Row.html}, note=[Accessed: 13-June-2026]}