是否只能通过使用 CategoryAttribute
等属性注释我的数据类来向 .NET PropertyGrid 添加类别?
最佳答案
您可以使用 CategoryAttribute
.文档指出:
A new category can be created for any name by specifying the name of the category in the constructor for the
CategoryAttribute
.
例子:
[
Category("MyCategory"),
Description("Specifies something")
]
public string Something { //... }
关于c# - 将类别添加到 .NET PropertyGrid,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4783146/