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);
}
}
}
}
}
发表评论 取消回复