默认情况下,在设计器中的属性面板中,显示的是属性名。但是属性名一般是英文名,直接显示英文名对用户不友好。
通过标注 DisplayNameAttribute 可以修改属性面板中属性的显示标签。
public class MyPluginCellType : CellType { [DisplayName("我的属性")] public string MyProperty { get; set; } }
设计器效果:
默认情况下,在设计器中的属性面板中,显示的是属性名。但是属性名一般是英文名,直接显示英文名对用户不友好。
通过标注 DisplayNameAttribute 可以修改属性面板中属性的显示标签。
public class MyPluginCellType : CellType { [DisplayName("我的属性")] public string MyProperty { get; set; } }
设计器效果: