Multi-line string in a PropertyGrid

后端 未结 4 1958
走了就别回头了
走了就别回头了 2020-12-15 16:23

Is there a built-in editor for a multi-line string in a PropertyGrid.

4条回答
  •  猫巷女王i
    2020-12-15 16:26

    I found that System.Design.dll has System.ComponentModel.Design.MultilineStringEditor which can be used as follows:

    public class Stuff
    {
        [Editor(typeof(MultilineStringEditor), typeof(UITypeEditor))]
        public string MultiLineProperty { get; set; }
    }
    

提交回复
热议问题