Appearance
单元格分组与排序
默认情况下,单元格的分组是其他

可以通过标注CategoryAttribute来自定义分组
csharp
[Category("我的分组")]
public class MyPluginCellType : CellType
{
}效果如下
如果分组名与既有的分组名一致,会加到已有的组里
csharp
[Category("导航")]
public class MyPluginCellType : CellType
{
}效果如下

如果有多个插件,在同一分组,可以通过OrderWeightAttribute标注排序权重
csharp
[OrderWeight(1)]
[Category("我的分组")]
public class MyPluginCellType1 : CellType
{
}
[OrderWeight(2)]
[Category("我的分组")]
public class MyPluginCellType2 : CellType
{
}
[OrderWeight(3)]
[Category("我的分组")]
public class MyPluginCellType3 : CellType
{
}设计器效果
更新: 2022-12-02 22:01:31
原文: https://www.yuque.com/robert-bh51n/ea8l6c/uefq1sac8ic2beme