public void FlushStyles() { foreach (var s in _styles) { SvgElementFactory.SetPropertyValue(this, s.Key, s.Value.Last().Value, this.OwnerDocument); } _styles = null; }
public void FlushStyles() { if (_styles.Any()) { var styles = new Dictionary <string, SortedDictionary <int, string> >(); foreach (var s in _styles) { if (!SvgElementFactory.SetPropertyValue(this, s.Key, s.Value.Last().Value, this.OwnerDocument, isStyle: true)) { styles.Add(s.Key, s.Value); } } _styles = styles; } }