Beispiel #1
0
 public void FlushStyles()
 {
     foreach (var s in _styles)
     {
         SvgElementFactory.SetPropertyValue(this, s.Key, s.Value.Last().Value, this.OwnerDocument);
     }
     _styles = null;
 }
Beispiel #2
0
 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;
     }
 }