Version

PrimitiveTypeUITypeEditor Class

The editor for a property of type System.Object.
Syntax
'Declaration
 
Public Class PrimitiveTypeUITypeEditor 
   Inherits System.Drawing.Design.UITypeEditor
public class PrimitiveTypeUITypeEditor : System.Drawing.Design.UITypeEditor 
Remarks

Provides a dropdown list of primitive types (e.g. string, int, datetime etc.).

When a new type is selected, the editor will attempt to convert the existing property value to that type.

If the conversion fails the property will be set to a default value appropriate for the selected type.

The editor is specified as the System.ComponentModel.EditorAttribute for a property of type System.Object.

Normally the PrimitiveTypeConverter should be also specified as the corresponding System.ComponentModel.TypeConverterAttribute for the property.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also