public override void saveTo(BinaryWriter writer, PersistContext ctx) { base.saveTo(writer, ctx); if (_blend != null) { writer.Write((int)1); ctx.saveFloatArray(_blend.Factors); ctx.saveFloatArray(_blend.Positions); } else { writer.Write((int)0); } ctx.saveColor(_linearColors[0]); ctx.saveColor(_linearColors[1]); if (_interpolationColors != null) { writer.Write((int)1); ctx.saveColorArray(_interpolationColors.Colors); ctx.saveFloatArray(_interpolationColors.Positions); } else { writer.Write((int)0); } writer.Write((double)_angle); }
public override void saveTo(BinaryWriter writer, PersistContext ctx) { base.saveTo(writer, ctx); writer.Write((int)_hatchStyle); ctx.saveColor(_foreColor); ctx.saveColor(_backColor); }
public void saveTo(BinaryWriter writer, PersistContext ctx) { writer.Write(x); writer.Write(y); writer.Write(allowIncoming); writer.Write(allowOutgoing); writer.Write((int)markStyle); ctx.saveColor(color); // new in file format 6 writer.Write(col); // new in file format 7 bool tagSerializable = false; if (tag != null) { tagSerializable = tag.GetType().IsSerializable; } writer.Write(tagSerializable); if (tagSerializable) { ctx.saveTag(tag); } // new in file format 23 writer.Write(toolTip); }
public virtual void saveTo(BinaryWriter writer, PersistContext ctx) { ctx.saveReference(this, _brush, 1); ctx.saveColor(_color); ctx.saveFloatArray(_compoundArray); writer.Write((int)_dashStyle); ctx.saveFloatArray(_dashPattern); writer.Write((double)_dashOffset); writer.Write((double)_width); writer.Write((int)_lineJoin); writer.Write((double)_miterLimit); }
public virtual void saveTo(BinaryWriter writer, PersistContext ctx) { ctx.saveRect(rect); writer.Write(constructed); writer.Write(locked); writer.Write(zIndex); writer.Write((int)penDashStyle); writer.Write((double)penWidth); writer.Write((double)shadowOffsetX); writer.Write((double)shadowOffsetY); writer.Write(invisible); writer.Write(selected); bool tagSerializable = false; if (tag != null) { tagSerializable = tag.GetType().IsSerializable; } writer.Write(tagSerializable); if (tagSerializable) { ctx.saveTag(tag); } ctx.saveFont(Font); writer.Write(toolTip); ctx.saveReference(this, subordinateGroup, 100); ctx.saveReference(this, masterGroup, 101); // new in file format 10 ctx.saveColor(shadowColor); writer.Write(ignoreLayout); // new in file format 15 writer.Write(printable); // new in file format 16 writer.Write(weight); }
public override void saveTo(BinaryWriter writer, PersistContext ctx) { base.saveTo(writer, ctx); ctx.saveColor(_color); }
public override void saveTo(BinaryWriter writer, PersistContext ctx) { base.saveTo(writer, ctx); if(_blend != null) { writer.Write((int)1); ctx.saveFloatArray(_blend.Factors); ctx.saveFloatArray(_blend.Positions); } else { writer.Write((int)0); } ctx.saveColor(_linearColors[0]); ctx.saveColor(_linearColors[1]); if(_interpolationColors != null) { writer.Write((int)1); ctx.saveColorArray(_interpolationColors.Colors); ctx.saveFloatArray(_interpolationColors.Positions); } else { writer.Write((int)0); } writer.Write((double)_angle); }
public override void saveTo(BinaryWriter writer, PersistContext ctx) { base.saveTo(writer, ctx); writer.Write((int)_hatchStyle); ctx.saveColor(_foreColor); ctx.saveColor(_backColor); }
public virtual void saveTo(BinaryWriter writer, PersistContext ctx) { ctx.saveReference(this, _brush, 1); ctx.saveColor(_color); ctx.saveFloatArray(_compoundArray); writer.Write((int)_dashStyle); ctx.saveFloatArray(_dashPattern); writer.Write((double)_dashOffset); writer.Write((double)_width); writer.Write((int)_lineJoin); writer.Write((double)_miterLimit); }
public virtual void saveTo(BinaryWriter writer, PersistContext ctx) { ctx.saveColor(backColor); writer.Write((int)behavior); writer.Write((int)arrowHead); writer.Write((int)arrowBase); writer.Write((int)arrowInterm); writer.Write((double)arrowHeadSize); writer.Write((double)arrowBaseSize); writer.Write((double)arrowIntermSize); writer.Write((int)shadowsStyle); ctx.saveColor(boxFillColor); ctx.saveColor(arrowFillColor); ctx.saveColor(boxFrameColor); ctx.saveColor(arrowColor); writer.Write(alignToGrid); writer.Write(showGrid); ctx.saveColor(gridColor); writer.Write((double)gridSize); writer.Write((int)boxStyle); ctx.saveColor(shadowColor); writer.Write((int)imagePos); ctx.saveColor(textColor); ctx.saveColor(activeMnpColor); ctx.saveColor(selMnpColor); ctx.saveColor(disabledMnpColor); writer.Write((int)arrowStyle); writer.Write(arrowSegments); writer.Write((double)scrollX); writer.Write((double)scrollY); writer.Write(zoomFactor); writer.Write((int)penDashStyle); writer.Write((double)penWidth); writer.Write(defPolyShape.GetLength(0)); writer.Write(defPolyShape); ctx.saveRect(docExtents); writer.Write((double)shadowOffsetX); writer.Write((double)shadowOffsetY); ctx.saveColor(tableFillColor); ctx.saveColor(tableFrameColor); writer.Write(tableRowsCount); writer.Write(tableColumnsCount); writer.Write((double)tableColWidth); writer.Write((double)tableRowHeight); writer.Write((double)tableCaptionHeight); writer.Write(tableCaption); writer.Write((int)arrowCascadeOrientation); writer.Write((int)tableCellBorders); writer.Write((int)boxIncmAnchor); writer.Write((int)boxOutgAnchor); writer.Write(boxesExpandable); writer.Write(tablesScrollable); }
public void saveTo(BinaryWriter writer, PersistContext ctx) { writer.Write(x); writer.Write(y); writer.Write(allowIncoming); writer.Write(allowOutgoing); writer.Write((int)markStyle); ctx.saveColor(color); // new in file format 6 writer.Write(col); // new in file format 7 bool tagSerializable = false; if (tag != null) tagSerializable = tag.GetType().IsSerializable; writer.Write(tagSerializable); if (tagSerializable) ctx.saveTag(tag); // new in file format 23 writer.Write(toolTip); }
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); }
public override void saveTo(BinaryWriter writer, PersistContext ctx) { base.saveTo(writer, ctx); writer.Write((int)style); ctx.saveColor(penColor); ctx.saveReference(this, orgnLink, 1); ctx.saveReference(this, destLink, 2); writer.Write(segmentCount); writer.Write(text); ctx.saveColor(textColor); writer.Write((int)arrowHead); writer.Write((int)arrowBase); writer.Write((int)arrowInterm); writer.Write((double)headSize); writer.Write((double)baseSize); writer.Write((double)intermSize); ctx.saveColor(fillColor); writer.Write(dynamic); writer.Write((int)cascadeOrientation); writer.Write(cascadeStartHorizontal); writer.Write(reflexive); ctx.saveReference(this, points, 3); ctx.saveReference(this, null, 4); ctx.saveObject(pen); ctx.saveReference(this, brush, 5); // new in file format 5 writer.Write(allowMoveStart); writer.Write(allowMoveEnd); writer.Write(orgnAnchor); writer.Write(destAnchor); // new in file format 8 writer.Write(autoRoute); writer.Write(retainForm); writer.Write((int)textStyle); // new in file format 10 ctx.saveObject(headPen); // new in file format 17 writer.Write((int)customDraw); // new in file format 20 writer.Write(snapToNodeBorder); writer.Write((int)selStyle); // new in file format 26 writer.Write(hyperLink); // new in file format 29 writer.Write(drawCrossings); }
public override void saveTo(BinaryWriter writer, PersistContext ctx) { base.saveTo(writer, ctx); ctx.saveColor(_color); }
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(text); ctx.saveStringFormat(textFormat); ctx.saveReference(this, table, 1); // new in save format 6 writer.Write((int)picturePos); ctx.saveImage(picture); // new in save format 14 ctx.saveColor(textColor); ctx.saveReference(this, brush, 2); // new in save format 18 writer.Write(toolTip); // new in save format 19 writer.Write(hyperLink); // new in save format 22 writer.Write(columnSpan); writer.Write(rowSpan); bool tagSerializable = false; if (tag != null) tagSerializable = tag.GetType().IsSerializable; writer.Write(tagSerializable); if (tagSerializable) ctx.saveTag(tag); }
public virtual void saveTo(BinaryWriter writer, PersistContext ctx) { ctx.saveRect(rect); writer.Write(constructed); writer.Write(locked); writer.Write(zIndex); writer.Write((int)penDashStyle); writer.Write((double)penWidth); writer.Write((double)shadowOffsetX); writer.Write((double)shadowOffsetY); writer.Write(invisible); writer.Write(selected); bool tagSerializable = false; if (tag != null) tagSerializable = tag.GetType().IsSerializable; writer.Write(tagSerializable); if (tagSerializable) ctx.saveTag(tag); ctx.saveFont(Font); writer.Write(toolTip); ctx.saveReference(this, subordinateGroup, 100); ctx.saveReference(this, masterGroup, 101); // new in file format 10 ctx.saveColor(shadowColor); writer.Write(ignoreLayout); // new in file format 15 writer.Write(printable); // new in file format 16 writer.Write(weight); }