/// <summary> /// Create a new textbox Under this Group. /// </summary> /// <param name="anchor">the position of the shape.</param> /// <returns>the textbox</returns> public HSSFTextbox CreateTextbox(HSSFChildAnchor anchor) { HSSFTextbox shape = new HSSFTextbox(this, anchor); shape.Anchor = anchor; shapes.Add(shape); return shape; }
/// <summary> /// Create another Group Under this Group. /// </summary> /// <param name="anchor">the position of the new Group.</param> /// <returns>the Group</returns> public HSSFShapeGroup CreateGroup(HSSFChildAnchor anchor) { HSSFShapeGroup group = new HSSFShapeGroup(this, anchor); group.Anchor = anchor; shapes.Add(group); return group; }
/// <summary> /// Create a new simple shape Under this Group. /// </summary> /// <param name="anchor">the position of the shape.</param> /// <returns>the shape</returns> public HSSFSimpleShape CreateShape(HSSFChildAnchor anchor) { HSSFSimpleShape shape = new HSSFSimpleShape(this, anchor); shape.Anchor = anchor; shapes.Add(shape); return shape; }
/// <summary> /// Creates a polygon /// </summary> /// <param name="anchor">the client anchor describes how this Group Is attached /// to the sheet.</param> /// <returns>the newly Created shape.</returns> public HSSFPolygon CreatePolygon(HSSFChildAnchor anchor) { HSSFPolygon shape = new HSSFPolygon(this, anchor); shape.Anchor = anchor; shapes.Add(shape); return shape; }
/// <summary> /// Creates a picture. /// </summary> /// <param name="anchor">the client anchor describes how this Group Is attached /// to the sheet.</param> /// <param name="pictureIndex">Index of the picture.</param> /// <returns>the newly Created shape.</returns> public HSSFPicture CreatePicture(HSSFChildAnchor anchor, int pictureIndex) { HSSFPicture shape = new HSSFPicture(this, anchor); shape.Anchor = anchor; shape.PictureIndex=pictureIndex; shapes.Add(shape); return shape; }