简体   繁体   English

属性网格中枚举的描述

[英]Description of enum in property grid

I have a Enum as I use it in Property Grid . 我在Property Grid使用了一个Enum

 public enum Mye
    {
        [EnumItem("e 1", true, "This is e 1")]
        e1= 1,

        [EnumItem("e 2", true, "This is e 2")]
        e2= 2,
    }

Where am I supposed to see the description ? 我应该在哪里看到说明

("This is e 1", "This is e 2") (“这是e 1”,“这是e 2”)

I think this is what you want Enum Intellisense Display Attribute? 我想这就是您想要的Enum Intellisense显示属性吗?

The description will be shown in a yellow tooltip when you are selecting 1 item from the items list of your enum. 从枚举的项目列表中选择一项时,说明将以黄色的工具提示显示。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM