标签:name format rect form color bsp def parse str
--字符串转换为对象
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);
标签:name format rect form color bsp def parse str
原文地址:https://www.cnblogs.com/xubao/p/14140433.html