Пример #1
0
        public XSSFShapeGroup CreateGroup(XSSFClientAnchor anchor)
        {
            CT_GroupShape ctGroup = this.CreateTwoCellAnchor((IClientAnchor)anchor).AddNewGrpSp();

            ctGroup.Set(XSSFShapeGroup.Prototype());
            XSSFShapeGroup xssfShapeGroup = new XSSFShapeGroup(this, ctGroup);

            xssfShapeGroup.anchor = (XSSFAnchor)anchor;
            return(xssfShapeGroup);
        }
Пример #2
0
        /**
         * Creates a simple shape.  This includes such shapes as lines, rectangles,
         * and ovals.
         *
         * @param anchor    the client anchor describes how this group is attached
         *                  to the sheet.
         * @return  the newly Created shape.
         */
        public XSSFShapeGroup CreateGroup(XSSFClientAnchor anchor)
        {
            CT_TwoCellAnchor ctAnchor = CreateTwoCellAnchor(anchor);
            CT_GroupShape    ctGroup  = ctAnchor.AddNewGrpSp();

            ctGroup.Set(XSSFShapeGroup.Prototype());

            XSSFShapeGroup shape = new XSSFShapeGroup(this, ctGroup);

            shape.anchor = anchor;
            return(shape);
        }