Row
Row[{expr1,expr2,…}]
is an object that formats with the expri arranged in a row, potentially extending over several lines.
Row[list,s]
inserts s as a separator between successive elements.
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 allclose allScope (2)
Options (11)
Alignment (1)
Adjust the alignment within the ImageSize:
FrameMargins (1)
FrameMargins also applies to the background:
RoundingRadius (1)
RoundingRadius also applies to the background:
Applications (3)
Possible Issues (2)
FrameMargins and RoundingRadius have no visible effect unless Frame->True:
Use FrameStyle->None to use other options without adding a frame:
Vertically spanning operators do not grow when passed in string form to Row:
Use RawBoxes to make operators vertically span the contents:
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