barbutton没有使用devexpress在色带控制中发射

时间:2017-08-05 06:41:15

标签: devexpress

private void barButtonItem4_ItemClick(object sender, ItemClickEventArgs e)
{ 
    RichEditControl richedit = e.Item.Tag as RichEditControl;
    DocumentRange[] foundRanges = richedit.Document.FindAll("Custom Action", SearchOptions.None);
    for (int i = 0; i < foundRanges.Length; i++)
    {
        richedit.Document.Selection = foundRanges[i];
        richedit.Cut();
    }
}  

0 个答案:

没有答案