【问题标题】:Working with enumerations marked with Flag Attribute in the PropertyGrid在 PropertyGrid 中使用标记为标志属性的枚举
【发布时间】:2011-04-29 08:20:12
【问题描述】:

我有一个标有 Flag 属性的枚举。如何在 PropertyGrid 中建立具有此枚举类型的便捷编辑属性?我应该能够设置这样的值 enumValue1 |枚举值2。此外,此枚举值的自定义字符串应显示在 PropertyGrid 中。

【问题讨论】:

    标签: c# .net winforms enums propertygrid


    【解决方案1】:

    继承 PropertyGrid 并覆盖方法...

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-06-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-08-14
    • 1970-01-01
    • 2017-08-06
    相关资源
    最近更新 更多