Row - Maple Help

DocumentTools[Layout]

 Row
 generate XML for a Row element

 Calling Sequence Row( c, opts )

Parameters

 c - (optional) ; content for the Row opts - (optional) ; one or more keyword options as described below

Options

 • alignment : identical(top,bottom,center,baseline):=top ; The vertical alignment of the contents of the Row.
 • separator : truefalse:=true ; Indicates whether a horizontal separator located above the Row will be visible when the interior borders of the parent Table are set to be shown by group.

Description

 • The Row command in the Layout Constructors package returns an XML function call which represents a Row element of a worksheet Table.
 • The generated XML may be used with the results of other commands in the Layout Constructors package to create an entire Worksheet or Document in XML form. Such a representation of a Worksheet or Document may be inserted into the current document using the InsertContent command.

Examples

 > $\mathrm{with}\left(\mathrm{DocumentTools}\right):$
 > $\mathrm{with}\left(\mathrm{DocumentTools}:-\mathrm{Layout}\right):$

Executing the Row command produces a function call.

 > $R≔\mathrm{Row}\left(\mathrm{Cell}\left("Some text"\right)\right)$
 {R}{≔}{\mathrm{_XML_Table-Row}}{}\left({"align"}{=}{"top"}{,}{"separator"}{=}{"true"}{,}{\mathrm{_XML_Table-Cell}}{}\left({"columnspan"}{=}{"1"}{,}{"backgroundstyle"}{=}{"0"}{,}{"rowspan"}{=}{"1"}{,}{"fillcolor"}{=}{"\left[255,255,255\right]"}{,}{"visible"}{=}{"true"}{,}{\mathrm{_XML_Text-field}}{}\left({"alignment"}{=}{"centred"}{,}{"style"}{=}{"Text"}{,}{"layout"}{=}{"Normal"}{,}{"Some text"}\right)\right)\right) (1)

By using additional commands from the Layout Constructors package a nested function call can be produced which represents an entire worksheet.

The Row is made the content of a Table.

 > $T≔\mathrm{Table}\left(\mathrm{Column}\left(\right),R\right):$
 > $\mathrm{xml}≔\mathrm{Worksheet}\left(T\right):$

That XML representation of a worksheet can be inserted directly.

 > $\mathrm{InsertContent}\left(\mathrm{xml}\right):$

 Some text

The Cell constructor is only necessary when some non-default Cell option is wanted, or when a sequence of arguments to Row are intended to be grouped in particular Cells. Arguments to the Row constructor are otherwise automatically wrapped in calls to Cell.

 > $R≔\mathrm{Row}\left("Some text.",\mathrm{Cell}\left("More text.","Yet more text.",\mathrm{fillcolor}="gold"\right),"Even more text"\right):$
 > $\mathrm{xml}≔\mathrm{Worksheet}\left(\mathrm{Table}\left(\mathrm{}\left(\mathrm{Column}\left(\right),3\right),R\right)\right):$
 > $\mathrm{InsertContent}\left(\mathrm{xml}\right):$

 Some text. More text. Yet more text. Even more text

When the interior borders of a Table are specified to be shown by group then the absence of a separator above a Row is revealed.

 > $s≔\mathrm{}\left("Some text",3\right):$
 > $T≔\mathrm{Table}\left(\mathrm{}\left(\mathrm{Column}\left(\right),3\right),\mathrm{interior}=\mathrm{group},\mathrm{Row}\left(s\right),\mathrm{Row}\left(s\right),\mathrm{Row}\left(s,\mathrm{separator}=\mathrm{false}\right),\mathrm{Row}\left(s,\mathrm{separator}=\mathrm{false}\right)\right):$
 > $\mathrm{InsertContent}\left(\mathrm{Worksheet}\left(T\right)\right):$

 Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text Some text

The vertical alignment of content of all Cells in a Row are specified by the alignment option for that Row.

 > $\mathrm{s1}≔"Some text.":$
 > $\mathrm{s2}≔"Some text.\nMore text.\nYet more text.":$
 > $p≔\mathrm{InlinePlot}\left(\mathrm{plot}\left(\mathrm{sin},\mathrm{tickmarks}=\left[1,1\right]\right)\right):$
 > T≔\mathrm{Table}\left(\mathrm{}\left(\mathrm{Column}\left(\right),3\right),\mathrm{widthmode}=\mathrm{pixels},\mathrm{width}=300,\mathrm{alignment}=\mathrm{center},\mathrm{Row}\left(\mathrm{s1},\mathrm{s2},p,\mathrm{alignment}=\mathrm{top}\right),\mathrm{Row}\left(\mathrm{s1},\mathrm{s2},p,\mathrm{alignment}=\mathrm{baseline}\right),\mathrm{Row}\left(\mathrm{s1},\mathrm{s2},p,\mathrm{alignment}=\mathrm{center}\right),\mathrm{Row}\left(\mathrm{s1},\mathrm{s2},p,\mathrm{alignment}=\mathrm{bottom}\right)\right):
 > $\mathrm{InsertContent}\left(\mathrm{Worksheet}\left(T\right)\right):$

 Some text. Some text. More text. Yet more text. Some text. Some text. More text. Yet more text. Some text. Some text. More text. Yet more text. Some text. Some text. More text. Yet more text.
 > 

Compatibility

 • The DocumentTools:-Layout:-Row command was introduced in Maple 2015.