Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

UITypeEditor Class

Provides a base class that can be used to design value editors that can provide a user interface for representing and editing the values of objects of the supported data type(s).

For a list of all members of this type, see UITypeEditor Members.

System.Object
   System.Drawing.Design.UITypeEditor
      Derived classes

[Visual Basic]
Public Class UITypeEditor
[C#]
public class UITypeEditor
[C++]
public __gc class UITypeEditor
[JScript]
public class UITypeEditor

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Remarks

UITypeEditor provides a base class that you can derive from and extend to implement a custom type editor for the design-time environment. Custom type editors are useful in situations where a text-box value editor is insufficient to effectively select the values of certain types.

To implement a custom design-time UI type editor, you must at least:

  • Define a class that derives from System.Drawing.Design.UITypeEditor.
  • Override the EditValue method to handle the user interface, user input processing, and value assignment.
  • Override the GetEditStyle method to inform the Properties window of the type of editor style that the editor will use.

You can add additional support for painting a value's representation in the Properties window by implementing the following:

  • Override GetPaintValueSupported to indicate that the editor supports displaying the value's representation.
  • Override PaintValue to implement the display of the value's representation.
  • Override the UITypeEditor constructor method if the editor should have initialization behavior.

For more information about enhancing design-time support, see Enhancing Design-Time Support. For more information on implementing a UITypeEditor, see Implementing a UI Type Editor.

Requirements

Namespace: System.Drawing.Design

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System.Drawing (in System.Drawing.dll)

See Also

UITypeEditor Members | System.Drawing.Design Namespace | ITypeDescriptorContext | IServiceProvider

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft