Custom Control Development-Default Editor

Source: Internet
Author: User
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;
}
}
}
}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.