/// <summary>
 /// Raises the <c>FormatLink</c> event.
 /// </summary>
 protected virtual void OnFormatLink(FormatLinkEventArgs e)
 {
     // raise...
     if (FormatLink != null)
     {
         FormatLink(this, e);
     }
 }
        private string LinksEvaluator(Match match)
        {
            if (match == null)
            {
                throw new ArgumentNullException("match");
            }

            // get it...
            string url  = ResolveUrl(match.Groups["url"].Value, this.ContentLinkPattern);
            string text = match.Groups["text"].Value;

            // mbr - 28-07-2005 - added resolve...
            FormatLinkEventArgs e = new FormatLinkEventArgs(url, text);

            this.OnFormatLink(e);

            // render...
            return(string.Format("<a class=\"{0}\" href=\"{1}\">{2}</a>", this.LinkCssClass, e.Url, e.Text));
        }