public GDStyleDefinition(string name, params object[] args) { Name = name; if (args != null) { foreach (object obj in args) { if (obj is GDTextStyle) { Format.AddStyle(obj as GDTextStyle); } } } }