Beispiel #1
0
        internal CT_Shape newCommentShape()
        {
            CT_Shape shape = new CT_Shape();

            shape.id        = "_x0000_s" + (++_shapeId);
            shape.type      = "#" + _shapeTypeId;
            shape.style     = "position:absolute; visibility:hidden";
            shape.fillcolor = ("#ffffe1");
            shape.insetmode = (ST_InsetMode.auto);
            shape.AddNewFill().color = ("#ffffe1");
            CT_Shadow shadow         = shape.AddNewShadow();

            shadow.on       = NPOI.OpenXmlFormats.Vml.ST_TrueFalse.t;
            shadow.color    = "black";
            shadow.obscured = NPOI.OpenXmlFormats.Vml.ST_TrueFalse.t;
            shape.AddNewPath().connecttype = (ST_ConnectType.none);
            shape.AddNewTextbox().style    = ("mso-direction-alt:auto");
            CT_ClientData cldata           = shape.AddNewClientData();

            cldata.ObjectType = ST_ObjectType.Note;
            cldata.AddNewMoveWithCells();
            cldata.AddNewSizeWithCells();
            cldata.AddNewAnchor("1, 15, 0, 2, 3, 15, 3, 16");
            cldata.AddNewAutoFill(ST_TrueFalseBlank.@false);
            cldata.AddNewRow(0);
            cldata.AddNewColumn(0);
            _items.Add(shape);

            return(shape);
        }
Beispiel #2
0
        internal CT_Shape newCommentShape()
        {
            CT_Shape ctShape = new CT_Shape();

            ctShape.id        = "_x0000_s" + (object)++this._shapeId;
            ctShape.type      = "#" + this._shapeTypeId;
            ctShape.style     = "position:absolute; visibility:hidden";
            ctShape.fillcolor = "#ffffe1";
            ctShape.insetmode = ST_InsetMode.auto;
            ctShape.AddNewFill().color = "#ffffe1";
            CT_Shadow ctShadow         = ctShape.AddNewShadow();

            ctShadow.on       = ST_TrueFalse.t;
            ctShadow.color    = "black";
            ctShadow.obscured = ST_TrueFalse.t;
            ctShape.AddNewPath().connecttype = ST_ConnectType.none;
            ctShape.AddNewTextbox().style    = "mso-direction-alt:auto";
            CT_ClientData ctClientData       = ctShape.AddNewClientData();

            ctClientData.ObjectType = ST_ObjectType.Note;
            ctClientData.AddNewMoveWithCells();
            ctClientData.AddNewSizeWithCells();
            ctClientData.AddNewAnchor("1, 15, 0, 2, 3, 15, 3, 16");
            ctClientData.AddNewAutoFill(ST_TrueFalseBlank.@false);
            ctClientData.AddNewRow(0);
            ctClientData.AddNewColumn(0);
            this._items.Add((object)ctShape);
            return(ctShape);
        }
        internal CT_Shape newCommentShape()
        {
            CT_Shape shape = new CT_Shape();

            shape.id = "_x0000_s" + (++_shapeId);
            shape.type ="#_x0000_t" + (++_shapeTypeId);
            shape.style="position:absolute; visibility:hidden";
            shape.fillcolor = ("#ffffe1");
            shape.insetmode = (ST_InsetMode.auto);
            shape.AddNewFill().color=("#ffffe1");
            CT_Shadow shadow = shape.AddNewShadow();
            shadow.on= ST_TrueFalse.t;
            shadow.color = "black";
            shadow.obscured = ST_TrueFalse.t;
            shape.AddNewPath().connecttype = (ST_ConnectType.none);
            shape.AddNewTextbox().style = ("mso-direction-alt:auto");
            CT_ClientData cldata = shape.AddNewClientData();
            cldata.ObjectType=ST_ObjectType.Note;
            cldata.AddNewMoveWithCells();
            cldata.AddNewSizeWithCells();
            cldata.AddNewAnchor("1, 15, 0, 2, 3, 15, 3, 16");
            cldata.AddNewAutoFill(ST_TrueFalseBlank.@false);
            cldata.AddNewRow(0);
            cldata.AddNewColumn(0);
            _items.Add(shape);

            return shape;
        }