Hi Avi,
Thanks for your feedback.
Oh, yes, you are right. It seems that I am not familiar with the newer
version of Reflector. Actually, I usually use Reflector to view the source
code of .Net controls, while the original version of Reflector will show
the property attribute in the left panel, but the lastest updated version I
am current using is not showing the attributes in the left panel now.
With a little deeper insight into Label.Text property, yes, .Net2.0
associates MultilineStringEditor with this property. MultilineStringEditor
is a public avaiable FCL class, which Displays a dialog for editing
multi-line strings in design mode. So for String type property, you can
reuse this class like this:
[Editor(typeof(System.ComponentModel.Design.MultilineStringEditor),
typeof(UITypeEditor))]
public override string StringProp
{
get
{
return base.StringProp;
}
set
{
base.StringProp= value;
}
}
Hope it helps
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
|