HTML Renderer was developed to be a library of 100% managed code that draws beautifully formatted HTML.
It comes along with three WinForms controls:
· HtmlPanel
· HtmlLabel
· HtmlTooltip
And a static method ready to draw html:
· HtmlRenderer.Render(Graphics g, string html, RectangleF area, bool clip)
HtmlPanel:
· A panel that is ready to accept HTML code via its Text property. It's full name is System.Windows.Forms.HtmlPanel
The only properties you need to know are:
· AutoScroll. Activates/Deactivates the auto-scroll capabilities as you know. It is set to true by default.
· Text. Gets/Sets the HTML source.
· The panel will update the bounds of the elements as you scroll or resize the control.
Requirements:
· Visual Studio
What's New in This Release: [ read full changelog ]
Features:
· Added link html element attributes to LinkClicked event (issue - 2526).
· Added support for .NET color names (thx to Quadko, issue - 8454)
Image handling:
· Show error image with borders if failed to load image
· Load image from file async
· Download image from web async
· Caching of downloaded image
· Load image event that allows overwrite image from outside, with async support (issue - 8457)
· Dispose of images as soon as the HtmlContent is not in use
Error handling:
· Event raised when error occurred in Html Renderer
· Error event allows to continue render in spite error
· Error in loading image
· Error in mouse/keyboard handling
· Error in paint in single box level
· Error in layout in single box level
Added support:
· Multiple classes in single attribute separated by whitespace
· Background-image (very basic support)
Fixes:
· Image size when failed to get image
· More block inside inline element issues (thx to Quadko, issue - 8455, 8456)