コード例 #1
0
        public XSSFSimpleShape CreateSimpleShape(XSSFChildAnchor anchor)
        {
            CT_Shape ctShape = this.ctGroup.AddNewSp();

            ctShape.Set(XSSFSimpleShape.Prototype());
            XSSFSimpleShape xssfSimpleShape = new XSSFSimpleShape(this.GetDrawing(), ctShape);

            xssfSimpleShape.parent = this;
            xssfSimpleShape.anchor = (XSSFAnchor)anchor;
            xssfSimpleShape.GetCTShape().spPr.xfrm = anchor.GetCTTransform2D();
            return(xssfSimpleShape);
        }
コード例 #2
0
        /**
         * Creates a simple shape.  This includes such shapes as lines, rectangles,
         * and ovals.
         *
         * @param anchor the child anchor describes how this shape is attached
         *               to the group.
         * @return the newly Created shape.
         */
        public XSSFSimpleShape CreateSimpleShape(XSSFChildAnchor anchor)
        {
            CT_Shape ctShape = ctGroup.AddNewSp();

            ctShape.Set(XSSFSimpleShape.Prototype());

            XSSFSimpleShape shape = new XSSFSimpleShape(GetDrawing(), ctShape);

            shape.parent = (this);
            shape.anchor = anchor;
            shape.GetCTShape().spPr.xfrm = (anchor.GetCTTransform2D());
            return(shape);
        }
コード例 #3
0
ファイル: XSSFShapeGroup.cs プロジェクト: xoposhiy/npoi
        /**
         * Creates a simple shape.  This includes such shapes as lines, rectangles,
         * and ovals.
         *
         * @param anchor the child anchor describes how this shape is attached
         *               to the group.
         * @return the newly Created shape.
         */
        public XSSFSimpleShape CreateSimpleShape(XSSFChildAnchor anchor)
        {
            CT_Shape ctShape = ctGroup.AddNewSp();
            ctShape.Set(XSSFSimpleShape.Prototype());

            XSSFSimpleShape shape = new XSSFSimpleShape(GetDrawing(), ctShape);
            shape.parent = (this);
            shape.anchor = anchor;
            shape.GetCTShape().spPr.xfrm = (anchor.GetCTTransform2D());
            return shape;
        }