Using system;
Using system. Collections. Generic;
Using system. LINQ;
Using system. text;
Using system. Web. UI. design;
Using system. componentmodel;
Using system. componentmodel. design;
Using system. design;
Using system. Drawing. design;
Using system. Windows. forms;
Using system. Web. UI. webcontrols;
Using system. Windows. Forms. design;
Using system. drawing;
Namespace mytestproj
{
Public class editorcontrol: webcontrol
{
String strtxteditor;
[Category ("Editor")]
[Description ("drop-down multi-Line Text Editor")]
[Editor ("system. componentmodel. Design. multilinestringeditor, system. Design", typeof (uitypeeditor)]
Public String txteditor
{
Get
{
Return strtxteditor;
}
Set
{
Strtxteditor = value;
}
}
Color ccoloreditor;
[Category ("Editor")]
[Description ("color editor")]
[Editor ("system. componentmodel. Design. coloreditor, system. Design ",
Typeof (uitypeeditor)]
Public color coloreditor
{
Get
{
Return ccoloreditor;
}
Set
{
Ccoloreditor = value;
}
}
String strfilename;
[Category ("Editor")]
[Description ("select file Editor")]
[Editor (typeof (filenameeditor), typeof (uitypeeditor)]
Public String filename
{
Get
{
Return strfilename;
}
Set
{
Strfilename = value;
}
}
String strfoldernameeditor;
[Category ("Editor")]
[Description ("directory selection Editor")]
[Editor (typeof (foldernameeditor), typeof (uitypeeditor)]
Public String foldernameeditor
{
Get
{
Return strfoldernameeditor;
}
Set
{
Strfoldernameeditor = value;
}
}
String strconnectionstringeditor;
[Category ("Editor")]
[Description ("connection string Editor")]
[Editor (typeof (system. Web. UI. Design. connectionstringeditor ),
Typeof (uitypeeditor)]
Public String connectionstringeditor
{
Get
{
Return strconnectionstringeditor;
}
Set
{
Strconnectionstringeditor = value;
}
}
String strexpressionscollectioneditor;
[Category ("Editor")]
[Description ("Edit expression binding Set Editor")]
[Editor (typeof (system. Web. UI. Design. expressionscollectioneditor ),
Typeof (uitypeeditor)]
Public String expressionscollectioneditor
{
Get
{
Return strexpressionscollectioneditor;
}
Set
{
Strexpressionscollectioneditor = value;
}
}
String strusercontrolfileeditor;
[Category ("Editor")]
[Description ("User Control (ascx) dialog box Editor")]
[Editor (typeof (system. Web. UI. Design. usercontrolfileeditor ),
Typeof (uitypeeditor)]
Public String usercontrolfileeditor
{
Get
{
Return strusercontrolfileeditor;
}
Set
{
Strusercontrolfileeditor = value;
}
}
}
}