遗忘海岸

江湖程序员 -Feiph(LM战士)

导航

关于Devexpress richEditControl

窗体可以继承FormBase,但是不能继承frmTEditBase

 

barManager1:

1

            btnCapture.ItemClick += (s, e) =>
            {

                using (FrmCapture frmC = new FrmCapture())
                {
                    if (frmC.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                    {

                        RichEditControl control = this.richEditControl1;
                        control.Document.InsertImage(control.Document.CaretPosition, DocumentImageSource.FromFile(frmC.SaveFilename));

                    }
                }

            };
View Code

截屏代码

posted on 2020-01-05 16:49  遗忘海岸  阅读(482)  评论(0编辑  收藏  举报