Exemple #1
13
        /**
         * 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 XSSFConnector CreateConnector(XSSFChildAnchor anchor)
        {
            CT_Connector ctShape = ctGroup.AddNewCxnSp();
            ctShape.Set(XSSFConnector.Prototype());

            XSSFConnector shape = new XSSFConnector(GetDrawing(), ctShape);
            shape.parent = this;
            shape.anchor = anchor;
            shape.GetCTConnector().spPr.xfrm = (anchor.GetCTTransform2D());
            return shape;
        }
Exemple #2
0
        public XSSFConnector CreateConnector(XSSFChildAnchor anchor)
        {
            CT_Connector ctShape = this.ctGroup.AddNewCxnSp();

            ctShape.Set(XSSFConnector.Prototype());
            XSSFConnector xssfConnector = new XSSFConnector(this.GetDrawing(), ctShape);

            xssfConnector.parent = this;
            xssfConnector.anchor = (XSSFAnchor)anchor;
            xssfConnector.GetCTConnector().spPr.xfrm = anchor.GetCTTransform2D();
            return(xssfConnector);
        }
Exemple #3
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);
        }
Exemple #4
0
        /**
         * Constructs a textbox.
         *
         * @param anchor the child anchor describes how this shape is attached
         *               to the group.
         * @return      the newly Created textbox.
         */
        public XSSFTextBox CreateTextbox(XSSFChildAnchor anchor)
        {
            CT_Shape ctShape = ctGroup.AddNewSp();

            ctShape.Set(XSSFSimpleShape.Prototype());

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

            shape.parent = this;
            shape.anchor = anchor;
            shape.GetCTShape().spPr.xfrm = (anchor.GetCTTransform2D());
            return(shape);
        }
Exemple #5
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 XSSFConnector CreateConnector(XSSFChildAnchor anchor)
        {
            CT_Connector ctShape = ctGroup.AddNewCxnSp();

            ctShape.Set(XSSFConnector.Prototype());

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

            shape.parent = this;
            shape.anchor = anchor;
            shape.GetCTConnector().spPr.xfrm = (anchor.GetCTTransform2D());
            return(shape);
        }
Exemple #6
-11
        /**
         * Constructs a textbox.
         *
         * @param anchor the child anchor describes how this shape is attached
         *               to the group.
         * @return      the newly Created textbox.
         */
        public XSSFTextBox CreateTextbox(XSSFChildAnchor anchor)
        {
            CT_Shape ctShape = ctGroup.AddNewSp();
            ctShape.Set(XSSFSimpleShape.Prototype());

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

        }