public static void SetRectangle(this SvgRectangle r, RectangleF bounds) { r.X = bounds.X; r.Y = bounds.Y; r.Width = bounds.Width; r.Height = bounds.Height; }