Winform RichEditControl多shift实现方法:


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Windows.Forms;
using DevExpress.XtraBars;
using DevExpress.XtraRichEdit;

namespace WindowsFormsApp1
{
    public partial class RibbonForm3 : DevExpress.XtraBars.Ribbon.RibbonForm
    {
        public RibbonForm3()
        {
            InitializeComponent();
        }

        private void XtraTabControl1_SelectedPageChanged(object sender, DevExpress.XtraTab.TabPageChangedEventArgs e)
        {
            foreach (var item in e.Page.Controls)
            {
                if (item.GetType() == typeof(RichEditControl))
                {
                    richEditBarController1.RichEditControl = (item as RichEditControl);
                }
            } 
        }
    }
}

点赞(159) 打赏

评论列表 共有 0 条评论

暂无评论

微信小程序

微信扫一扫体验

立即
投稿

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部