示例:继承TextEdit类的CustomEdit,对应repository项为RepositoryItemCustomEdit,为新编辑器添加UseDefaultMode属性;
// 编辑器类信息
public EditorClassInfo(
string name, // 编辑器名称;
Type editorType, // 编辑器类别(类名);
Type repositoryType, // 编辑器库类类别(库类名);
Type viewInfoType, // ViewInfo类别(可以采用父类类别);
BaseEditPainter painter,// 编辑器Painter类实例(可用父类Painter来声明其实例);
bool designTimeVisible, // 容器组件设计时刻是否可见;
Image image, // 图标;
Type accessibleType // Specifies the type of the object that provides accessibility information.
);
// 编辑器自定义
using System.Drawing;
using System.Reflection;
using System.ComponentModel;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using DevExpress.XtraEditors.Repository;
using DevExpress.XtraEditors.Registrator;
using DevExpress.XtraEditors.Drawing;
using DevExpress.XtraEditors.ViewI