在PropertyGrid中多行字符串 [英] Multi-line string in a PropertyGrid

查看:529
本文介绍了在PropertyGrid中多行字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个内置的编辑器在多行字符串的PropertyGrid

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

推荐答案

我发现, System.Design.dll的 System.ComponentModel.Design .MultilineStringEditor 可使用如下:

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; }
}

这篇关于在PropertyGrid中多行字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆