>>419 とりあえずこんな感じ public class TestCmb : ComboBox { [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] public FontAndColorSetCollection TestProperty { get; set; } = new FontAndColorSetCollection(); }
//[Serializable] これいらない public class FontAndColorSet { public Font Font { get; set; } public Color Color { get; set; } } public class FontAndColorSetCollection : Collection<FontAndColorSet> { public void AddRange(FontAndColorSet[] items) { foreach (var x in items) this.Items.Add(x); } }