Group2D.Add

From Xojo Documentation

Method

Group2D.Add(Object as Object2D)

New in 2019r2

Supported for all project types and targets.

Adds the object passed to it.

Example

This example uses add the passed object twice to construct the Group2D object.

Var px As PixmapShape
Var t As TextShape
Var d As New Group2D

px = New PixmapShape(DSC_0343)
d.Add(px)

t = New TextShape
t.Y = 70
t.Value = "This is what I call a REAL car!"
t.FontName = "Helvetica"
t.IsBold = True
d.Add(s)

g.DrawObject(d, 100, 100)