[]
        
(Showing Draft Content)

给属性添加说明

有时,属性的功能或用法并不能通过属性名直接被理解,此时应该给属性添加一些描述,详细说明属性的功能、用法或特殊策略。

通过标注 DescriptionAttribute 可以实现此功能。

示例代码:

    public class MyPluginCellType : CellType
    {
        [Description("这里可以写一些描述")]
        public string MyProperty1 { get; set; }
        [Description("描述文本可以是多行的\r\n通过鼠标悬停到问号图标上查看")]
        public bool MyProperty2 { get; set; }
    }

设计器中的效果: