public static void ApplyRecursive(this SvgElement elem, Action <SvgElement> action) { foreach (var e in elem.Traverse(e => e.Children)) { action(e); } }