问题描述
您好,我想在c#winforms应用程序中使用System.ComponentModel.Design命名空间中的MultilineStringEditor.
我的意图是将其与propertygrid和自定义类一起使用.但是我无法弄清楚怎么办,因为我无法做到,这不是属性这会造成麻烦,该类似乎无法找到.
这是我的财产,我想通过多行装饰来更改.
[Browsable(true)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
[Editor(typeof(System.ComponentModel.Design.MultilineStringEditor),typeof(System.Drawing.Design.UITypeEditor)]<-此行不是正确的
公共字符串值
{
get {返回this._value; }
设置{this._value =值; }
}
Jonas
Hi
I'd like to use the MultilineStringEditor from the System.ComponentModel.Design namespace in a c# winforms application.
Myintension is to use it with a propertygrid and a custom class. But ican't figure out how since I can't reach it, it's not the attributesthat is causing trouble, the class seem like it can't be found.
This is my property which I'd like to change with a multiline edior.
[Browsable(true)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
[Editor(typeof(System.ComponentModel.Design.MultilineStringEditor),typeof(System.Drawing.Design.UITypeEditor)] <-- this row isn'tcorrect
public string Value
{
get { return this._value; }
set { this._value = value; }
}
Jonas
推荐答案
这篇关于如何使用MultilineStringEditor?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!