How to name a GroupShape?
I would like to name the GroupShape, please.
Thanks.
Here's my code:
- Code: Select all
ArrayList list = new ArrayList();
IAutoShape shp = this.ppt.Slides[0].Shapes.AppendShape(ShapeType.Ellipse, new RectangleF(convCM2Points(0.9f) + pos, convCM2Points(6.9f), convCM2Points(0.7f), convCM2Points(0.8f)));
shp.Name = "circTLE_W" + item.Value.semana;
shp.TextFrame.Text = Math.Round(item.Value.tle,0).ToString();
...... // Others setting
list.add(shp);
shp = this.ppt.Slides[0].Shapes.AppendShape(ShapeType.Ellipse, new RectangleF(convCM2Points(0.9f) + pos, convCM2Points(6.9f), convCM2Points(0.7f), convCM2Points(0.8f)));
shp.Name = "circTLE_W" + item.Value.semana;
shp.TextFrame.Text = Math.Round(item.Value.tle,0).ToString();
...... // Others setting
list.add(shp);
txtTitulo1 = this.ppt.Slides[0].Shapes.AppendShape(ShapeType.Ellipse, new RectangleF(convCM2Points(0.9f) + pos, convCM2Points(6.9f), convCM2Points(0.7f), convCM2Points(0.8f)));
txtTitulo1.Name = "txtSHR_W" + item.Value.semana;
txtTitulo1.TextFrame.Text = Math.Round(item.Value.shr,0).ToString() +"%";
...... // Others setting
list.add(shp);
this.ppt.Slides[0].GroupShape(list);