DocumentTools/Canvas/AppendToCanvas - Maple Help

Home : Support : Online Help : DocumentTools/Canvas/AppendToCanvas

DocumentTools[Canvas]

 AppendToCanvas
 append to a canvas

 Calling Sequence AppendToCanvas(canvas,elements)

Parameters

 canvas - XML canvas string elements - list of canvas elements

Description

 • The AppendToCanvas command appends new elements to the end of an existing XML canvas string in order to create a new canvas with merged content.

Examples

 > $\mathrm{with}\left(\mathrm{DocumentTools}:-\mathrm{Canvas}\right):$
 > $\mathrm{cv}≔\mathrm{NewCanvas}\left(\left["Part 1",\mathrm{sqrt}\left(x\right)\right]\right):$
 > $\mathrm{ShowCanvas}\left(\mathrm{cv}\right)$
 > $\mathrm{cv2}≔\mathrm{AppendToCanvas}\left(\mathrm{cv},\left["Part 2",\mathrm{ln}\left(y\right)\right]\right):$
 > $\mathrm{ShowCanvas}\left(\mathrm{cv2}\right)$
 > $\mathrm{ShareCanvas}\left(\mathrm{cv2}\right)$

Compatibility

 • The DocumentTools[Canvas][AppendToCanvas] command was introduced in Maple 2021.
 • For more information on Maple 2021 changes, see Updates in Maple 2021.