public override void saveTo(BinaryWriter writer, PersistContext ctx) { base.saveTo(writer, ctx); ctx.saveReference(this, cells, 1); ctx.saveReference(this, rowsList, 2); ctx.saveReference(this, colsList, 3); writer.Write(currScrollRow); writer.Write(scrollable); ctx.saveColor(fillColor); ctx.saveColor(frameColor); writer.Write(caption); ctx.saveColor(captionColor); ctx.saveStringFormat(captionFormat); writer.Write((double)captionHeight); writer.Write((int)cellBorders); writer.Write(rowsCount); writer.Write((double)rowHeight); writer.Write(columnsCount); writer.Write((double)columnWidth); ctx.saveColor(textColor); writer.Write((int)picturePos); ctx.saveImage(picture); ctx.saveObject(pen); ctx.saveReference(this, brush, 4); writer.Write((int)selStyle); // new in save format 6 ctx.saveAnchorPattern(rowAnchorPattern); writer.Write((long)enabledHandles); writer.Write((int)Style); // new in file format 8 writer.Write((int)linkStyle); // new in file format 9 ctx.saveAnchorPattern(anchorPattern); ctx.saveReference(this, incomingArrows, 5); ctx.saveReference(this, outgoingArrows, 6); // new in save format 14 writer.Write(Expanded); writer.Write(Expandable); writer.Write(useStyledText); // new in save format 19 writer.Write((int)customDraw); writer.Write((int)cellCustomDraw); // new in save format 22 writer.Write(offsetHeaderRows); // new in save format 25 ctx.saveReference(this, captionBackBrush, 7); }
public virtual void saveTo(BinaryWriter writer, PersistContext ctx) { writer.Write((double)height); ctx.saveReference(this, table, 1); ctx.saveReference(this, incomingArrows, 2); ctx.saveReference(this, outgoingArrows, 3); ctx.saveReference(this, relatedOneToMany, 4); ctx.saveReference(this, relatedManyToOne, 5); // new in save format 6 ctx.saveAnchorPattern(anchorPattern); // new in save format 22 writer.Write(header); writer.Write(expanded); }
public override void saveTo(BinaryWriter writer, PersistContext ctx) { base.saveTo(writer, ctx); writer.Write(Expanded); writer.Write(Expandable); writer.Write((long)enabledHandles); writer.Write((int)style); ctx.saveColor(fillColor); ctx.saveColor(frameColor); writer.Write((int)ImageAlign); writer.Write(text); ctx.saveColor(textColor); ctx.saveStringFormat(textFormat); writer.Write(transparent); ctx.saveReference(this, incomingArrows, 1); ctx.saveReference(this, outgoingArrows, 2); writer.Write((int)0/*anchorIncoming*/); writer.Write((int)0/*anchorOutgoing*/); writer.Write((int)customDraw); ctx.saveImage(image); ctx.saveObject(pen); ctx.saveReference(this, brush, 3); writer.Write((int)selStyle); // new in save format 5 ctx.saveAnchorPattern(anchorPattern); // new in save format 6 writer.Write(PolyTextLayout); writer.Write((double)shapeRotation); if (shapeTemplate != null) { writer.Write((int)0); writer.Write(shapeTemplate.Id); if (shapeTemplate.Id == "") { ctx.saveObject(shapeTemplate); ctx.saveObject(shapeData); } } else { writer.Write((int)-1); } // new in save format 13 // now in Node: writer.Write(hyperLink); // new in save format 14 writer.Write(useStyledText); // new in save format 22 writer.Write(rotationAngle); writer.Write(rotateContents); }