public XElement Visit(StyleChangeShapeRecordEx record, object arg) { var res = FormatShapeSetup(record); if (record.StateNewStyles) { var xStyles = new XElement("styles"); xStyles.Add(XStyleList.ToXml(record.FillStyles, record.LineStyles)); res.Add(xStyles); } return(res); }
public IShapeRecord Visit(StyleChangeShapeRecordEx record, XElement xShapeRecord) { ReadStyleChange(record, xShapeRecord); var xStyles = xShapeRecord.Element("styles"); if (xStyles != null) { record.StateNewStyles = true; XStyleList.FromXml(xStyles.Element("StyleList"), record.FillStyles, record.LineStyles); } return(record); }