ApiExamples.ExRange.ReplaceWithHtmlEvaluator.IReplacingCallback C# (CSharp) Метод

IReplacingCallback() приватный Метод

NOTE: This is a simplistic method that will only work well when the match starts at the beginning of a run.
private IReplacingCallback ( ReplacingArgs e ) : ReplaceAction
e ReplacingArgs
Результат ReplaceAction
            ReplaceAction IReplacingCallback.Replacing(ReplacingArgs e)
            {
                DocumentBuilder builder = new DocumentBuilder((Document)e.MatchNode.Document);
                builder.MoveTo(e.MatchNode);
                // Replace '<CustomerName>' text with a red bold name.
                builder.InsertHtml("<b><font color='red'>James Bond</font></b>");

                e.Replacement = "";
                return ReplaceAction.Replace;
            }
        }
ExRange.ReplaceWithHtmlEvaluator