Link text in LinkClicked event

Sep 13, 2013 at 10:42 AM
Hello,
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())
                    {
                        sb.Append(box.Text.CutSubstring());
                    }
                }
                
                var args = new HtmlLinkClickedEventArgs(link.HrefLink, link.HtmlTag.Attributes, sb.ToString());
...
(and the HtmlLinkClickedEventArgs class...)

Olaf