C# 字符串笔刷与实体转换
--字符串转换为对象
Font vFont = new Font(new FontFamily(item.font_name), float.Parse(item.font_size), (FontStyle)Enum.Parse(typeof(FontStyle), item.font_style));
SolidBrush vBrush = new SolidBrush(Color.FromKnownColor((KnownColor)Enum.Parse(typeof(KnownColor), item.brush_color)));
--
g.DrawString(text, item.vFont,vBrush , rect, StringFormat.GenericDefault);