DevExpress中获取RichTextEdit中RichEditControl的两种方式

方式一:

var rte = sender as RichTextEdit;
control = rte.Controls[0] as RichEditControl;

方式二:

PropertyInfo myPropertyInfo1 = rte.GetType().GetProperty("InnerControl", BindingFlags.NonPublic | BindingFlags.Instance);
control = myPropertyInfo1.GetValue(gridView1.ActiveEditor as RichTextEdit, null) as RichEditControl;

 



 

posted on 2015-01-20 13:17  harrell  阅读(976)  评论(0编辑  收藏  举报