private XSSFGraphicFrame CreateGraphicFrame(XSSFClientAnchor anchor) { CT_GraphicalObjectFrame ctGraphicFrame = this.CreateTwoCellAnchor((IClientAnchor)anchor).AddNewGraphicFrame(); ctGraphicFrame.Set(XSSFGraphicFrame.Prototype()); long num = this.numOfGraphicFrames++; return(new XSSFGraphicFrame(this, ctGraphicFrame) { Anchor = anchor, Id = num, Name = "Diagramm" + (object)num }); }
/** * Creates a new graphic frame. * * @param anchor the client anchor describes how this frame is attached * to the sheet * @return the newly Created graphic frame */ private XSSFGraphicFrame CreateGraphicFrame(XSSFClientAnchor anchor) { CT_TwoCellAnchor ctAnchor = CreateTwoCellAnchor(anchor); CT_GraphicalObjectFrame ctGraphicFrame = ctAnchor.AddNewGraphicFrame(); ctGraphicFrame.Set(XSSFGraphicFrame.Prototype()); long frameId = numOfGraphicFrames++; XSSFGraphicFrame graphicFrame = new XSSFGraphicFrame(this, ctGraphicFrame); graphicFrame.Anchor = anchor; graphicFrame.Id = frameId; graphicFrame.Name = "Diagramm" + frameId; return(graphicFrame); }