2 // System.Drawing.Design.UITypeEditor.cs
5 // Alan Tam Siu Lung <Tam@SiuLung.com>
6 // Andreas Nahr (ClassDevelopment@A-SoftTech.com)
8 // (C) 2003 Alan Tam Siu Lung <Tam@SiuLung.com>
9 // (C) 2003 Andreas Nahr
12 using System.ComponentModel;
13 namespace System.Drawing.Design
15 public class UITypeEditor
22 public virtual object EditValue (ITypeDescriptorContext context,
23 IServiceProvider provider, object value)
25 // We already stated that we can't edit ;)
28 public object EditValue(IServiceProvider provider, object value)
30 return EditValue (null, provider, value);
32 public virtual UITypeEditorEditStyle GetEditStyle (ITypeDescriptorContext context)
34 return UITypeEditorEditStyle.None;
36 public UITypeEditorEditStyle GetEditStyle ()
38 return GetEditStyle (null);
40 public bool GetPaintValueSupported ()
42 return GetPaintValueSupported (null);
44 public virtual bool GetPaintValueSupported (ITypeDescriptorContext context)
48 public void PaintValue (object value, Graphics canvas, Rectangle rectangle)
50 PaintValue (new PaintValueEventArgs (null, value, canvas, rectangle));
52 public virtual void PaintValue (PaintValueEventArgs e)
54 // LAMESPEC: Did not find info in the docs if this should do something here.
55 // Usually you would expect, that this class gets inherited and this overridden,
56 // but on the other hand the class is not abstract. Could never observe it did paint anything