这似乎是一个错误:
下面的代码工作正常:
this.propertyGrid1.SelectedObject = new Button();
下面的代码没有:
this.propertyGrid1.BrowsableAttributes = new AttributeCollection(
new CategoryAttribute("Layout"));
this.propertyGrid1.SelectedObject = new Button();
大小、位置、... PropertyGrid 中的属性无法展开。