This project is read-only.

Link text in LinkClicked event

Sep 13, 2013 at 11:42 AM
it could be useful to know the inner text of a link when handling the LinkClicked event, so I changed the HtmlContainer.HandleLinkClicked():
//inserted in line 669:
                System.Text.StringBuilder sb = new System.Text.StringBuilder();
                foreach (CssBox box in link.Boxes) 
                    if (!box.Text.IsEmpty())
                var args = new HtmlLinkClickedEventArgs(link.HrefLink, link.HtmlTag.Attributes, sb.ToString());
(and the HtmlLinkClickedEventArgs class...)