PropertyGridTypeEditor

public abstract class PropertyGridTypeEditor
Interface for custom type editors of the PropertyGrid
Remarks: Use the System.ComponentModel.EditorAttribute to specify the editor for a particular property or type. For example:
[Editor(typeof(MyEditorClass), typeof(PropertyGridTypeEditor))]

Methods

CreateControl

#
public abstract Control CreateControl(CellEventArgs args)
Creates the control for editing (and viewing for platforms that support it)
args (CellEventArgs)Arguments to create the control
The control instance to set to the cell

PaintCell

#
public abstract void PaintCell(CellPaintEventArgs args)
Paints the cell when viewing for platforms that don't support custom controls for non-editing cells (E.g. Gtk, WinForms).