/** * Initialize a new Speadsheet VML Drawing */ private void newDrawing() { CT_ShapeLayout layout = new CT_ShapeLayout(); layout.ext = (ST_Ext.edit); CT_IdMap idmap = layout.AddNewIdmap(); idmap.ext = (ST_Ext.edit); idmap.data = ("1"); _items.Add(layout); CT_Shapetype shapetype = new CT_Shapetype(); _shapeTypeId = COMMENT_SHAPE_TYPE_ID; shapetype.id = _shapeTypeId;// "_x0000_t" + _shapeTypeId; shapetype.coordsize = "21600,21600"; shapetype.spt = 202; //_shapeTypeId = 202; shapetype.path2 = ("m,l,21600r21600,l21600,xe"); shapetype.AddNewStroke().joinstyle = (ST_StrokeJoinStyle.miter); CT_Path path = shapetype.AddNewPath(); path.gradientshapeok = NPOI.OpenXmlFormats.Vml.ST_TrueFalse.t; path.connecttype = (ST_ConnectType.rect); _items.Add(shapetype); }
/** * Initialize a new Speadsheet VML Drawing */ private void newDrawing() { CT_ShapeLayout layout = new CT_ShapeLayout(); layout.ext = (ST_Ext.edit); CT_IdMap idmap = layout.AddNewIdmap(); idmap.ext = (ST_Ext.edit); idmap.data = ("1"); _items.Add(layout); CT_Shapetype shapetype = new CT_Shapetype(); _shapeTypeId = "_xssf_cell_comment"; shapetype.id = _shapeTypeId; shapetype.coordsize = "21600,21600"; shapetype.spt = 202; shapetype.path2 = ("m,l,21600r21600,l21600,xe"); shapetype.AddNewStroke().joinstyle = (ST_StrokeJoinStyle.miter); CT_Path path = shapetype.AddNewPath(); path.gradientshapeok = ST_TrueFalse.t; path.connecttype = (ST_ConnectType.rect); _items.Add(shapetype); }
private void newDrawing() { CT_ShapeLayout ctShapeLayout = new CT_ShapeLayout(); ctShapeLayout.ext = ST_Ext.edit; CT_IdMap ctIdMap = ctShapeLayout.AddNewIdmap(); ctIdMap.ext = ST_Ext.edit; ctIdMap.data = "1"; this._items.Add((object)ctShapeLayout); CT_Shapetype ctShapetype = new CT_Shapetype(); this._shapeTypeId = "_xssf_cell_comment"; ctShapetype.id = this._shapeTypeId; ctShapetype.coordsize = "21600,21600"; ctShapetype.spt = 202f; ctShapetype.path2 = "m,l,21600r21600,l21600,xe"; ctShapetype.AddNewStroke().joinstyle = ST_StrokeJoinStyle.miter; CT_Path ctPath = ctShapetype.AddNewPath(); ctPath.gradientshapeok = ST_TrueFalse.t; ctPath.connecttype = ST_ConnectType.rect; this._items.Add((object)ctShapetype); }
/** * Initialize a new Speadsheet VML Drawing */ private void newDrawing() { CT_ShapeLayout layout = new CT_ShapeLayout(); layout.ext = (ST_Ext.edit); CT_IdMap idmap = layout.AddNewIdmap(); idmap.ext = (ST_Ext.edit); idmap.data = ("1"); _items.Add(layout); CT_Shapetype shapetype = new CT_Shapetype(); shapetype.id= "_x0000_t" + _shapeTypeId; shapetype.coordsize="21600,21600"; shapetype.spt=202; shapetype.path2 = ("m,l,21600r21600,l21600,xe"); shapetype.AddNewStroke().joinstyle = (ST_StrokeJoinStyle.miter); CT_Path path = shapetype.AddNewPath(); path.gradientshapeok = ST_TrueFalse.t; path.connecttype=(ST_ConnectType.rect); _items.Add(shapetype); }