PropertyGrid.PropertyGrid.AddPropertyEditor C# (CSharp) Method

AddPropertyEditor() public method

public AddPropertyEditor ( Type editType, Type editorType ) : void
editType System.Type
editorType System.Type
return void
        public void AddPropertyEditor(Type editType, Type editorType)
        {
            EditorManager.AddEditor(editType,editorType);
        }

Usage Example

 public static void LoadMonoreportsExtensions(this PropertyGrid.PropertyGrid pg)
 {
     pg.AddPropertyEditor(typeof(MonoReports.Model.Point), typeof(MonoReports.Extensions.PropertyGridEditors.PointEditorCell));
     pg.AddPropertyEditor(typeof(MonoReports.Model.Border), typeof(MonoReports.Extensions.PropertyGridEditors.BorderEditorCell));
     pg.AddPropertyEditor(typeof(MonoReports.Model.Thickness), typeof(MonoReports.Extensions.PropertyGridEditors.ThicknessEditorCell));
     pg.AddPropertyEditor(typeof(MonoReports.Model.Color), typeof(MonoReports.Extensions.PropertyGridEditors.MonoreportsColorEditorCell));
 }