DocumentTools[Layout]
Row
generate XML for a Row element
Calling Sequence
Parameters
Options
Description
Examples
Compatibility
Row( c, opts )
c
-
(optional) ; content for the Row
opts
(optional) ; one or more keyword options as described below
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.
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.
with⁡DocumentTools:
with⁡DocumentTools:-Layout:
Executing the Row command produces a function call.
R≔Row⁡Cell⁡Some text
R≔_XML_Table-Row⁡align=top,separator=true,_XML_Table-Cell⁡columnspan=1,backgroundstyle=0,rowspan=1,fillcolor=[255,255,255],visible=true,_XML_Text-field⁡alignment=centred,style=Text,layout=Normal,Some text
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≔Table⁡Column⁡,R:
xml≔Worksheet⁡T:
That XML representation of a worksheet can be inserted directly.
InsertContent⁡xml:
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≔Row⁡Some text.,Cell⁡More text., Yet more text.,fillcolor=gold,Even more text:
xml≔Worksheet⁡Table⁡`$`⁡Column⁡,3,R:
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≔`$`⁡Some text,3:
T≔Table⁡`$`⁡Column⁡,3,interior=group,Row⁡s,Row⁡s,Row⁡s,separator=false,Row⁡s,separator=false:
InsertContent⁡Worksheet⁡T:
The vertical alignment of content of all Cells in a Row are specified by the alignment option for that Row.
s1≔Some text.:
s2≔Some text.\nMore text.\nYet more text.:
p≔InlinePlot⁡plot⁡sin,tickmarks=1,1:
T≔Table⁡`$`⁡Column⁡,3,widthmode=pixels,width=300,alignment=center,Row⁡s1,s2,p,alignment=top,Row⁡s1,s2,p,alignment=baseline,Row⁡s1,s2,p,alignment=center,Row⁡s1,s2,p,alignment=bottom:
Some text. More text. Yet more text.
The DocumentTools:-Layout:-Row command was introduced in Maple 2015.
For more information on Maple 2015 changes, see Updates in Maple 2015.
See Also
Component Constructors
DocumentTools
InsertContent
Layout Constructors
XMLTools
Download Help Document