PropertyGrid.PropertyGrid.AddPropertyEditor C# (CSharp) 메소드

AddPropertyEditor() 공개 메소드

public AddPropertyEditor ( Type editType, Type editorType ) : void
editType System.Type
editorType System.Type
리턴 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));
 }