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); }
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); }