private void InitDocument() { // change the default document style document.Style.FillStyle = new NColorFillStyle(Color.FromArgb(50, 0, 0xaa, 0xaa)); document.Style.StrokeStyle = new NStrokeStyle(1, Color.FromArgb(0, 0xaa, 0xaa)); // create the group NGroup group = new NGroup(); // create ellipse1 NEllipseShape ellipse1 = new NEllipseShape(0, 0, 100, 100); ellipse1.Text = "1"; group.Shapes.AddChild(ellipse1); // create ellipse2 NEllipseShape ellipse2 = new NEllipseShape(150, 0, 100, 100); ellipse2.Text = "2"; group.Shapes.AddChild(ellipse2); // create ellipse3 NEllipseShape ellipse3 = new NEllipseShape(0, 150, 100, 100); ellipse3.Text = "3"; group.Shapes.AddChild(ellipse3); // update the model bounds of the group group.UpdateModelBounds(); // translate the group group.Translate(100, 100); // add the group to the active layer document.ActiveLayer.AddChild(group); }