コード例 #1
0
            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);
            }
コード例 #2
0
            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);
            }