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

方式一:

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

方式二:

PropertyInfo myPropertyInfo1 = rte.GetType().GetProperty("InnerControl", BindingFlags.NonPublic | BindingFlags.Instance);
control = myPropertyInfo1.GetValue(gridView1.ActiveEditor as RichTextEdit, null) as RichEditControl;
上一篇:[BZOJ4182]Shopping (点分治+树上多重背包+单调队列优化)


下一篇:Selenium 出现: Caused by: java.lang.ClassNotFoundException: org.w3c.dom.ElementTraversal