private void AddDefaultProperties(Part part, Style style) { // find the part's default properties ArrayList defaultProps = new ArrayList(); DClass cls = (DClass) Voc.DClasses[part.Class]; foreach (DProperty prop in cls.Children) { if (prop.IsDefaultProperty && !part.HasProperty(prop.Identifier, style)) style.AddProperty(prop.DefaultProperty, part); } }