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();
}
}