Exemple #1
0
        public XSSFConnector CreateConnector(XSSFClientAnchor anchor)
        {
            CT_Connector ctShape = this.CreateTwoCellAnchor((IClientAnchor)anchor).AddNewCxnSp();

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

            xssfConnector.anchor = (XSSFAnchor)anchor;
            return(xssfConnector);
        }
Exemple #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 XSSFConnector CreateConnector(XSSFClientAnchor anchor)
        {
            CT_TwoCellAnchor ctAnchor = CreateTwoCellAnchor(anchor);
            CT_Connector     ctShape  = ctAnchor.AddNewCxnSp();

            ctShape.Set(XSSFConnector.Prototype());

            XSSFConnector shape = new XSSFConnector(this, ctShape);

            shape.anchor = anchor;
            return(shape);
        }
Exemple #3
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 #4
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);
        }