示例#1
0
        public ITextbox CreateTextbox(IClientAnchor anchor)
        {
            long num = this.newShapeId();

            NPOI.OpenXmlFormats.Dml.Spreadsheet.CT_Shape ctShape = this.CreateTwoCellAnchor(anchor).AddNewSp();
            ctShape.Set(XSSFSimpleShape.Prototype());
            ctShape.nvSpPr.cNvPr.id = (uint)num;
            XSSFTextBox xssfTextBox = new XSSFTextBox(this, ctShape);

            xssfTextBox.anchor = (XSSFAnchor)anchor;
            return((ITextbox)xssfTextBox);
        }
示例#2
0
        public XSSFSimpleShape CreateSimpleShape(XSSFClientAnchor anchor)
        {
            long num = this.newShapeId();

            NPOI.OpenXmlFormats.Dml.Spreadsheet.CT_Shape ctShape = this.CreateTwoCellAnchor((IClientAnchor)anchor).AddNewSp();
            ctShape.Set(XSSFSimpleShape.Prototype());
            ctShape.nvSpPr.cNvPr.id = (uint)num;
            XSSFSimpleShape xssfSimpleShape = new XSSFSimpleShape(this, ctShape);

            xssfSimpleShape.anchor = (XSSFAnchor)anchor;
            return(xssfSimpleShape);
        }