Quantcast
Channel: HtmlRenderer Wiki & Documentation Rss Feed
Viewing all 73 articles
Browse latest View live

Updated Wiki: Home

$
0
0
This is a library of 100% managed code that draws beautifully formatted HTML.

renderer_001.jpg

It comes along with three WinForms controls:

  • HtmlPanel
  • HtmlLabel
  • HtmlTootlip

And a static method ready to draw html:

HtmlRenderer.Render(Graphics g, string html, RectangleF area, bool clip)

Note: The drawing engine is based on the CSS Level 2 specification.

Background


For years, I have been planning for a project like this. I prepared my self quite well. I went through the entire CSS Level 2 specifiation along with the HTML 4.01 specification.

One of the most interesting things I found is this: Drawing HTML is no more than laying out a bunch of boxes with borders margins and paddings. Once you overpass this paradigm, everything else is to help the code actually place the boxes on the right place, and then paint the string each box contains.

Imagine the power that drawing full-rich-formatted HTML on your controls can give to your applications. Use bold when you need it, italics on every message, and borders and fonts as you may like or need everywhere on the desktop application. One of the first projects where I will use it is on the tooltips of my Ribbon Project.

Although I have not tested it on mono yet, there should be no problem at all, since all of the code on the library is managed code and the methods it use to paint are quite basic. It draws lines, rectangles, curves and text.

For now, the render looks really nice. Some times it can fool you to think your'e using a real Web Browser, trust me, download the demo, is just an exe and a dll.

Using the code


The library locates the code under the System.Drawing.Html namespace. The controls that render HTML are under the System.Windows.Forms namespace.

The renderer follows the CSS Box Model. Box model is nothing but a tree of boxes, just as the tree of HTML, each of this boxes is represented by a very used class called CssBox. The start node is represented by the class InitialContainer.

All the known CSS properties apply to each of this boxes. Each box may contain any number of child boxes and just one parent. The only box that has no parent at all is the so called Initial Container.

A typical use of an Inital Container to draw HTML would look like this:

//Create the InitialContainer
InitialContainer c = new InitialContainer("<html>");
//Give bounds to the container
c.SetBounds(ClientRectangle);
//Measure bounds of each box on the tree
c.MeasureBounds(graphics);
//Paint the HTML document
c.Paint(graphics);


renderer_001.jpg
First a label, then a panel and at last a ToolTip, all of which support HTML rendering.

You may never use it, since I provided Controls and Methods that creates this object for you.

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.

HtmlLabel


A label that is ready to accept HTML code via its Text property. It's full name is System.Windows.Forms.HtmlLabel

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.
  • AutoSize. Sets the size of the label automatically if activated.
  • Text. Gets/Sets the HTML source.

Some interesting things:

  • The label will update the bounds of the elements as you scroll or resize the control.
  • The label can be transparent
  • The panel has better performance than the label.

HtmlToolTip


Works exactly like the ToolTip you already know, with the little difference that this tooltip will render HTML on it. It's full name is System.Windows.Forms.HtmlToolTip

There are no properties here to learn. Use it just the way you use the ToolTip that comes with the framework. Internally, it just handles the OwnerDraw event.

Some features of my own


I took the liberty of adding a copule of features:

  • Background gradients
  • Rounded corners

These are achieved thru the following CSS properties:

  • background-gradient: (color)
  • background-gradient-angle: (number)
  • corner-ne-radius: (length)
  • corner-nw-radius: (length)
  • corner-se-radius: (length)
  • corner-se-radius: (length)
  • corner-radius: (length){1,4} (shorthand for all corners)

What's currently supported by the Renderer?


  • Most border, padding and margin and positioning CSSproperties (except for the height property).
  • Text alignment horizontally and vertically, text indents too.
  • Lists, ordered and unordered. Advanced numbering is not yet supported.
  • Tables, almost at all of it. Cell combinations work quite well as far as I tested them.
  • Fonts (partially) and Colors
  • Backgrounds (just color)

Updated Wiki: Home

$
0
0
This project allows you can have the rich format power of HTML on you desktop applications without WebBrowser control and MSHTML.
The library is 100% managed code without any external libraries dependencies, the only requirement is .NET 2.0 or higher.

Renderer1.png

It comes along with three WinForms controls:
  • HtmlPanel
  • HtmlLabel
  • HtmlTootlip

And a static method ready to draw html:

HtmlRenderer.Render(Graphics g, string html, RectangleF area, bool clip)

Note: The drawing engine is based on the CSS Level 2 specification.

Background

For years, I have been planning for a project like this. I prepared my self quite well. I went through the entire CSS Level 2 specifiation along with the HTML 4.01 specification.

One of the most interesting things I found is this: Drawing HTML is no more than laying out a bunch of boxes with borders margins and paddings. Once you overpass this paradigm, everything else is to help the code actually place the boxes on the right place, and then paint the string each box contains.

Imagine the power that drawing full-rich-formatted HTML on your controls can give to your applications. Use bold when you need it, italics on every message, and borders and fonts as you may like or need everywhere on the desktop application. One of the first projects where I will use it is on the tooltips of my Ribbon Project.

Although I have not tested it on mono yet, there should be no problem at all, since all of the code on the library is managed code and the methods it use to paint are quite basic. It draws lines, rectangles, curves and text.

For now, the render looks really nice. Some times it can fool you to think your'e using a real Web Browser, trust me, download the demo, is just an exe and a dll.

Using the code

The library locates the code under the System.Drawing.Html namespace. The controls that render HTML are under the System.Windows.Forms namespace.

The renderer follows the CSS Box Model. Box model is nothing but a tree of boxes, just as the tree of HTML, each of this boxes is represented by a very used class called CssBox. The start node is represented by the class InitialContainer.

All the known CSS properties apply to each of this boxes. Each box may contain any number of child boxes and just one parent. The only box that has no parent at all is the so called Initial Container.

A typical use of an Inital Container to draw HTML would look like this:

//Create the InitialContainer
InitialContainer c = new InitialContainer("<html>");

 
//Give bounds to the container
c.SetBounds(ClientRectangle);

 
//Measure bounds of each box on the tree
c.MeasureBounds(graphics);
 

//Paint the HTML document
c.Paint(graphics);


First a label, then a panel and at last a ToolTip, all of which support HTML rendering.

You may never use it, since I provided Controls and Methods that creates this object for you.

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.

HtmlLabel

A label that is ready to accept HTML code via its Text property. It's full name is System.Windows.Forms.HtmlLabel

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.
  • AutoSize. Sets the size of the label automatically if activated.
  • Text. Gets/Sets the HTML source.

Some interesting things:
  • The label will update the bounds of the elements as you scroll or resize the control.
  • The label can be transparent
  • The panel has better performance than the label.

HtmlToolTip

Works exactly like the ToolTip you already know, with the little difference that this tooltip will render HTML on it. It's full name is System.Windows.Forms.HtmlToolTip

There are no properties here to learn. Use it just the way you use the ToolTip that comes with the framework. Internally, it just handles the OwnerDraw event.

Some features of my own

I took the liberty of adding a copule of features:
  • Background gradients
  • Rounded corners

These are achieved thru the following CSS properties:
  • background-gradient: (color)
  • background-gradient-angle: (number)
  • corner-ne-radius: (length)
  • corner-nw-radius: (length)
  • corner-se-radius: (length)
  • corner-se-radius: (length)
  • corner-radius: (length){1,4} (shorthand for all corners)

What's currently supported by the Renderer?

  • Most border, padding and margin and positioning CSSproperties (except for the height property).
  • Text alignment horizontally and vertically, text indents too.
  • Lists, ordered and unordered. Advanced numbering is not yet supported.
  • Tables, almost at all of it. Cell combinations work quite well as far as I tested them.
  • Fonts (partially) and Colors
  • Backgrounds (just color)

Updated Wiki: Demo application

$
0
0
The HTML Renderer Demo application has three roles:
1. Showcase the HTML Renderer capabilities with build in htmls.
2. Explore and test HTML Renderer capabilities by editing html text and seeing the rendering immediately.
3. Development tool for HTML Renderer.

Showcase HTML renderer capabilities

Demo1.png
Figure 1: See showcase examples in the tree to the left (Intro, History, Text, Tables, Links, etc.)

Edit html directly in editor and see the renderer refresh

Demo2.png
Figure 2: Added color="red" attribute and see the rendered html updates

See the different WinForms controls support using "Sample Form"

Demo3.png
Figure 3: Open "Sample Form" to see the HtmlLabel control in-action.

Updated Wiki: Home

$
0
0
The rich formating power of HTML in your .NET applications without WebBrowser control or MSHTML.
The library is 100% managed code without any external dependencies, the only requirement is .NET 2.0 or higher.

Renderer1.png

Features and Benefits

  • Extensive HTML 4.01 and CSS 2 specifications support.
  • Support text selection, copy-paste and context menu.
  • WinForms controls: HtmlPanel, HtmlLabel and HtmlToolTip.
  • Create images from html snippets.
  • 100% managed code and no external dependencies.
  • Supports .NET 2.0 or higher including Client Profile.
  • Lightweight single dll (~250K).
  • High performance and low memory footprint.
  • Extendable and configurable.

WinForms controls:

  • HtmlPanel - The full power of html control build to replace WinForms WebBrowser control usage, accepts html, text selection, scrollbars.
  • HtmlLabel - As WinForms label but accepts html, text selection, auto-size capabilities, transparent background and more.
  • HtmlTootlip - As WinForms ToolTip control but accepts html and ability to handle links.

Updated Wiki: Home

$
0
0
The rich formating power of HTML in your .NET applications without WebBrowser control or MSHTML.
The library is 100% managed code without any external dependencies, the only requirement is .NET 2.0 or higher.

Renderer1.png

Features and Benefits

  • Extensive HTML 4.01 and CSS 2 specifications support.
  • Support text selection, copy-paste and context menu.
  • WinForms controls: HtmlPanel, HtmlLabel and HtmlToolTip.
  • Create images from html snippets.
  • 100% managed code and no external dependencies.
  • Supports .NET 2.0 or higher including Client Profile.
  • Lightweight single dll (~250K).
  • High performance and low memory footprint.
  • Extendable and configurable.

WinForms controls:

  • HtmlPanel - The full power of html control build to replace WinForms WebBrowser control usage, accepts html, text selection, scrollbars.
  • HtmlLabel - As WinForms label but accepts html, text selection, auto-size capabilities, transparent background and more.
  • HtmlTootlip - As WinForms ToolTip control but accepts html and ability to handle links.

NuGet package install

  • PM> Install-Package HtmlRenderer.WinForms
  • NuGet package manager GUI

Manual install

  • Download the binaries.
  • Reference the proper .NET release (2.0, 3.5, 4.0, 4.5) in your project.

Usage

  • Add HtmlRenderer to Visual Studio Toolbox (drag-drop the dll on it).
  • Drag-n-drop HtmlPanel, HtmlLabel or HtmlToolTip from the Toolbox.
  • Set the Text property with your html.

Updated Wiki: Home

$
0
0
The rich formating power of HTML in your .NET applications without WebBrowser control or MSHTML.
The library is 100% managed code without any external dependencies, the only requirement is .NET 2.0 or higher.

Renderer1.png

Features and Benefits

  • Extensive HTML 4.01 and CSS 2 specifications support.
  • Support separating CSS from HTML by loading stylesheet code separately.
  • Support text selection, copy-paste and context menu.
  • WinForms controls: HtmlPanel, HtmlLabel and HtmlToolTip.
  • Create images from html snippets.
  • 100% managed code and no external dependencies.
  • Supports .NET 2.0 or higher including Client Profile.
  • Lightweight single dll (~250K).
  • High performance and low memory footprint.
  • Extendable and configurable.
  • Powerful Demo application to explore and learn the library.

WinForms controls:

  • HtmlPanel - The full power of html control build to replace WinForms WebBrowser control usage, accepts html, text selection, scrollbars, link click intercept, image load intercept and much more.
  • HtmlLabel - As WinForms label but accepts html, text selection, auto-size capabilities, transparent background and more.
  • HtmlTootlip - As WinForms ToolTip control but accepts html and ability to handle links.

NuGet package install

  • PM> Install-Package HtmlRenderer.WinForms
  • NuGet package manager GUI

Manual install

  • Download the binaries.
  • Reference the proper .NET release (2.0, 3.5, 4.0, 4.5) in your project.

Usage

  • Add HtmlRenderer to Visual Studio Toolbox (drag-drop the dll on it).
  • Drag-n-drop HtmlPanel, HtmlLabel or HtmlToolTip from the Toolbox.
  • Set the Text property with your html.

Updated Wiki: Documentation

$
0
0
The rich formating power of HTML in your .NET applications without WebBrowser control or MSHTML.

Navigation:

Features and Benefits

  • Extensive HTML 4.01 and CSS 2 specifications support.
  • Support separating CSS from HTML by loading stylesheet code separately.
  • Support text selection, copy-paste and context menu.
  • WinForms controls: HtmlPanel, HtmlLabel and HtmlToolTip.
  • Create images from html snippets.
  • 100% managed code and no external dependencies.
  • Supports .NET 2.0 or higher including Client Profile.
  • Lightweight single dll (~250K).
  • High performance and low memory footprint.
  • Extendable and configurable.
  • Powerful Demo application to explore and learn the library.

Getting Started

  • Download the binaries.
  • Run the Demo application
    • Check HTMLs showcasing renderer capabilities.
    • Paste your own HTML to see the power of the renderer.
  • Add the dll to Visual Studio Toolbox
  • Drag-n-drop Html WinForms controls on your controls.
  • Set the Text property with HTML and see it renders.

History

For years, I (Jose) have been planning for a project like this. I prepared my self quite well. I went through the entire CSS Level 2 specification along with the HTML 4.01 specification.

One of the most interesting things I found is this: Drawing HTML is no more than laying out a bunch of boxes with borders margins and padding's. Once you overpass this paradigm, everything else is to help the code actually place the boxes on the right place, and then paint the string each box contains.

In October 2012 I (Arthur) was looking to replace the usage of WinForms WebBrowser control by something that can render complex html and have good performance and stability characteristics.

HTML Renderer project showed great promise but had significant performance issues, lacked many features and wasn't updated for more than 3 years. Realizing there is no alternative I embraced the project making it my baby.

...

See Also

Updated Wiki: Home

$
0
0
The rich formating power of HTML in your .NET applications without WebBrowser control or MSHTML.
The library is 100% managed code without any external dependencies, the only requirement is .NET 2.0 or higher.

Renderer1.png

Features and Benefits

  • Extensive HTML 4.01 and CSS 2 specifications support.
  • Support separating CSS from HTML by loading stylesheet code separately.
  • Support text selection, copy-paste and context menu.
  • WinForms controls: HtmlPanel, HtmlLabel and HtmlToolTip.
  • Create images from html snippets.
  • 100% managed code and no external dependencies.
  • Supports .NET 2.0 or higher including Client Profile.
  • Lightweight single dll (~250K).
  • High performance and low memory footprint.
  • Extendable and configurable.
  • Powerful Demo application to explore and learn the library.

WinForms controls

  • HtmlPanel - The full power of html control build to replace WinForms WebBrowser control, accepts html, text selection, scrollbars, link click intercept, image load intercept and much more.
  • HtmlLabel - As WinForms label but accepts html, text selection, auto-size capabilities, transparent background and more.
  • HtmlTootlip - As WinForms ToolTip control but accepts html and ability to handle links.

NuGet package install

  • PM> Install-Package HtmlRenderer.WinForms
  • NuGet package manager GUI

Manual install

  • Download the binaries.
  • Reference the proper .NET release (2.0, 3.5, 4.0, 4.5) in your project.

Usage

  • Add HtmlRenderer to Visual Studio Toolbox (drag-drop the dll on it).
  • Drag-n-drop HtmlPanel, HtmlLabel or HtmlToolTip from the Toolbox.
  • Set the Text property with your html.

Updated Wiki: Home

$
0
0
The rich formating power of HTML in your .NET applications without WebBrowser control or MSHTML.
The library is 100% managed code without any external dependencies, the only requirement is .NET 2.0 or higher.

Renderer1.png

Features and Benefits

  • Extensive HTML 4.01 and CSS level 2 specifications support.
  • Support separating CSS from HTML by loading stylesheet code separately.
  • Support text selection, copy-paste and context menu.
  • WinForms controls: HtmlPanel, HtmlLabel and HtmlToolTip.
  • Create images from html snippets.
  • 100% managed code and no external dependencies.
  • Supports .NET 2.0 or higher including Client Profile.
  • Lightweight single dll (~250K).
  • High performance and low memory footprint.
  • Extendable and configurable.
  • Powerful Demo application to explore and learn the library.

WinForms controls

  • HtmlPanel - The full power of html control build to replace WinForms WebBrowser control, accepts html, text selection, scrollbars, link click intercept, image load intercept and much more.
  • HtmlLabel - As WinForms label but accepts html, text selection, auto-size capabilities, transparent background and more.
  • HtmlTootlip - As WinForms ToolTip control but accepts html and ability to handle links.

NuGet package install

NuGet package

Manual install

  • Download the binaries.
  • Reference the proper .NET release (2.0, 3.5, 4.0, 4.5) in your project.

Usage

  • Add HtmlRenderer to Visual Studio Toolbox (drag-drop the dll on it).
  • Drag-n-drop HtmlPanel, HtmlLabel or HtmlToolTip from the Toolbox.
  • Set the Text property with your html.

Updated Wiki: Home

$
0
0
The rich formating power of HTML in your .NET applications without WebBrowser control or MSHTML.
The library is 100% managed code without any external dependencies, the only requirement is .NET 2.0 or higher.

Renderer1.png

Features and Benefits

  • Extensive HTML 4.01 and CSS level 2 specifications support.
  • Support separating CSS from HTML by loading stylesheet code separately.
  • Support text selection, copy-paste and context menu.
  • WinForms controls: HtmlPanel, HtmlLabel and HtmlToolTip.
  • Create images from HTML snippets.
  • Handle "real world" malformed HTML.
  • 100% managed code and no external dependencies.
  • Supports .NET 2.0 or higher including Client Profile.
  • Lightweight single dll (~250K).
  • High performance and low memory footprint.
  • Extendable and configurable.
  • Powerful Demo application to explore and learn the library.

WinForms controls

  • HtmlPanel - The full power of HTML control build to replace WinForms WebBrowser control, accepts HTML, text selection, scrollbars, link click intercept, image load intercept and much more.
  • HtmlLabel - As WinForms label but accepts HTML, text selection, auto-size capabilities, transparent background and more.
  • HtmlTootlip - As WinForms ToolTip control but accepts HTML and ability to handle links.

NuGet package install

NuGet package

Manual install

  • Download the binaries.
  • Reference the proper .NET release (2.0, 3.5, 4.0, 4.5) in your project.

Usage

  • Add HtmlRenderer to Visual Studio Toolbox (drag-drop the dll on it).
  • Drag-n-drop HtmlPanel, HtmlLabel or HtmlToolTip from the Toolbox.
  • Set the Text property with your HTML.

Updated Wiki: Home

$
0
0
The rich formating power of HTML in your .NET applications without WebBrowser control or MSHTML.
The library is 100% managed code without any external dependencies, the only requirement is .NET 2.0 or higher.

Renderer1.png

Features and Benefits

  • Extensive HTML 4.01 and CSS level 2 specifications support.
  • Support separating CSS from HTML by loading stylesheet code separately.
  • Support text selection, copy-paste and context menu.
  • WinForms controls: HtmlPanel, HtmlLabel and HtmlToolTip.
  • Create images from HTML snippets.
  • Handles "real world" malformed HTML.
  • 100% managed code and no external dependencies.
  • Supports .NET 2.0 or higher including Client Profile.
  • Lightweight single dll (~250K).
  • High performance and low memory footprint.
  • Extendable and configurable.
  • Powerful Demo application to explore and learn the library.

WinForms controls

  • HtmlPanel - The full power of HTML control build to replace WinForms WebBrowser control, accepts HTML, text selection, scrollbars, link click intercept, image load intercept and much more.
  • HtmlLabel - As WinForms label but accepts HTML, text selection, auto-size capabilities, transparent background and more.
  • HtmlTootlip - As WinForms ToolTip control but accepts HTML and ability to handle links.

NuGet package install

NuGet package

Manual install

  • Download the binaries.
  • Reference the proper .NET release (2.0, 3.5, 4.0, 4.5) in your project.

Usage

  • Add HtmlRenderer to Visual Studio Toolbox (drag-drop the dll on it).
  • Drag-n-drop HtmlPanel, HtmlLabel or HtmlToolTip from the Toolbox.
  • Set the Text property with your HTML.

Updated Wiki: Home

$
0
0
The rich formating power of HTML in your .NET applications without WebBrowser control or MSHTML.
The library is 100% managed code without any external dependencies, the only requirement is .NET 2.0 or higher.

Renderer1.png

Features and Benefits

  • Extensive HTML 4.01 and CSS level 2 specifications support.
  • Support separating CSS from HTML by loading stylesheet code separately.
  • Support text selection, copy-paste and context menu.
  • WinForms controls: HtmlPanel, HtmlLabel and HtmlToolTip.
  • Create images from HTML snippets.
  • Handles "real world" malformed HTML, it doesn't have to be XHTML.
  • 100% managed code and no external dependencies.
  • Supports .NET 2.0 or higher including Client Profile.
  • Lightweight single dll (~250K).
  • High performance and low memory footprint.
  • Extendable and configurable.
  • Powerful Demo application to explore and learn the library.

WinForms controls

  • HtmlPanel - The full power of HTML control build to replace WinForms WebBrowser control, accepts HTML, text selection, scrollbars, link click intercept, image load intercept and much more.
  • HtmlLabel - As WinForms label but accepts HTML, text selection, auto-size capabilities, transparent background and more.
  • HtmlTootlip - As WinForms ToolTip control but accepts HTML and ability to handle links.

Sample application

  • Render HTML content generated by rich web editors like forums, blogs, etc.
  • Render Office documents converted to HTML.
  • Create complex WinForms UI with HTML instead of numerous WinForms controls with complex layout logic.
  • Create WinForms UI that requires text selection with clipboard support.
  • Create images from HTML code snippets.

NuGet package install

NuGet package

Manual install

  • Download the binaries.
  • Reference the proper .NET release (2.0, 3.5, 4.0, 4.5) in your project.

Usage

  • Add HtmlRenderer to Visual Studio Toolbox (drag-drop the dll on it).
  • Drag-n-drop HtmlPanel, HtmlLabel or HtmlToolTip from the Toolbox.
  • Set the Text property with your HTML.

Updated Wiki: Home

$
0
0
The rich formating power of HTML in your .NET applications without WebBrowser control or MSHTML.
The library is 100% managed c# code without any external dependencies, the only requirement is .NET 2.0 or higher.

Renderer1.png

Features and Benefits

  • Extensive HTML 4.01 and CSS level 2 specifications support.
  • Support separating CSS from HTML by loading stylesheet code separately.
  • Support text selection, copy-paste and context menu.
  • WinForms controls: HtmlPanel, HtmlLabel and HtmlToolTip.
  • Create images from HTML snippets.
  • Handles "real world" malformed HTML, it doesn't have to be XHTML.
  • 100% managed code and no external dependencies.
  • Supports .NET 2.0 or higher including Client Profile.
  • Lightweight single dll (~250K).
  • High performance and low memory footprint.
  • Extendable and configurable.
  • Powerful Demo application to explore and learn the library.

WinForms controls

  • HtmlPanel - The full power of HTML control build to replace WinForms WebBrowser control, accepts HTML, text selection, scrollbars, link click intercept, image load intercept and much more.
  • HtmlLabel - As WinForms label but accepts HTML, text selection, auto-size capabilities, transparent background and more.
  • HtmlTootlip - As WinForms ToolTip control but accepts HTML and ability to handle links.

Sample application

  • Render HTML content generated by rich web editors like forums, blogs, etc.
  • Render Office documents converted to HTML.
  • Create complex WinForms UI with HTML instead of numerous WinForms controls with complex layout logic.
  • Create WinForms UI that requires text selection with clipboard support.
  • Create images from HTML code snippets.

NuGet package install

NuGet package

Manual install

  • Download the binaries.
  • Reference the proper .NET release (2.0, 3.5, 4.0, 4.5) in your project.

Usage

  • Add HtmlRenderer to Visual Studio Toolbox (drag-drop the dll on it).
  • Drag-n-drop HtmlPanel, HtmlLabel or HtmlToolTip from the Toolbox.
  • Set the Text property with your HTML.

Updated Wiki: Home

$
0
0
The rich formating power of HTML in your .NET applications without WebBrowser control or MSHTML.
The library is 100% managed C# code without any external dependencies, the only requirement is .NET 2.0 or higher.

Renderer1.png

Features and Benefits

  • Extensive HTML 4.01 and CSS level 2 specifications support.
  • Support separating CSS from HTML by loading stylesheet code separately.
  • Support text selection, copy-paste and context menu.
  • WinForms controls: HtmlPanel, HtmlLabel and HtmlToolTip.
  • Create images from HTML snippets.
  • Handles "real world" malformed HTML, it doesn't have to be XHTML.
  • 100% managed code and no external dependencies.
  • Supports .NET 2.0 or higher including Client Profile.
  • Lightweight single dll (~250K).
  • High performance and low memory footprint.
  • Extendable and configurable.
  • Powerful Demo application to explore and learn the library.

WinForms controls

  • HtmlPanel - The full power of HTML control build to replace WinForms WebBrowser control, accepts HTML, text selection, scrollbars, link click intercept, image load intercept and much more.
  • HtmlLabel - As WinForms label but accepts HTML, text selection, auto-size capabilities, transparent background and more.
  • HtmlTootlip - As WinForms ToolTip control but accepts HTML and ability to handle links.

Sample application

  • Render HTML content generated by rich web editors like forums, blogs, etc.
  • Render Office documents converted to HTML.
  • Create complex WinForms UI with HTML instead of numerous WinForms controls with complex layout logic.
  • Create WinForms UI that requires text selection with clipboard support.
  • Create images from HTML code snippets.

NuGet package install

NuGet package

Manual install

  • Download the binaries.
  • Reference the proper .NET release (2.0, 3.5, 4.0, 4.5) in your project.

Usage

  • Add HtmlRenderer to Visual Studio Toolbox (drag-drop the dll on it).
  • Drag-n-drop HtmlPanel, HtmlLabel or HtmlToolTip from the Toolbox.
  • Set the Text property with your HTML.

Updated Wiki: Home

$
0
0
The rich formating power of HTML in your .NET applications without WebBrowser control, ActiveX / COM or MSHTML dll.
The library is 100% managed C# code without any external dependencies, the only requirement is .NET 2.0 or higher.

Renderer1.png

Features and Benefits

  • Extensive HTML 4.01 and CSS level 2 specifications support.
  • Support separating CSS from HTML by loading stylesheet code separately.
  • Support text selection, copy-paste and context menu.
  • WinForms controls: HtmlPanel, HtmlLabel and HtmlToolTip.
  • Create images from HTML snippets.
  • Handles "real world" malformed HTML, it doesn't have to be XHTML.
  • 100% managed code and no external dependencies.
  • Supports .NET 2.0 or higher including Client Profile.
  • Lightweight single dll (~250K).
  • High performance and low memory footprint.
  • Extendable and configurable.
  • Powerful Demo application to explore and learn the library.

WinForms controls

  • HtmlPanel - The full power of HTML control build to replace WinForms WebBrowser control, accepts HTML, text selection, scrollbars, link click intercept, image load intercept and much more.
  • HtmlLabel - As WinForms label but accepts HTML, text selection, auto-size capabilities, transparent background and more.
  • HtmlTootlip - As WinForms ToolTip control but accepts HTML and ability to handle links.

Sample application

  • Render HTML content generated by rich web editors like forums, blogs, etc.
  • Render Office documents converted to HTML.
  • Create complex WinForms UI with HTML instead of numerous WinForms controls with complex layout logic.
  • Create WinForms UI that requires text selection with clipboard support.
  • Create images from HTML code snippets.

NuGet package install

NuGet package

Manual install

  • Download the binaries.
  • Reference the proper .NET release (2.0, 3.5, 4.0, 4.5) in your project.

Usage

  • Add HtmlRenderer to Visual Studio Toolbox (drag-drop the dll on it).
  • Drag-n-drop HtmlPanel, HtmlLabel or HtmlToolTip from the Toolbox.
  • Set the Text property with your HTML.

Updated Wiki: Home

$
0
0
The rich formatting power of HTML in your .NET applications using simple controls or static rendering code.
The library is 100% managed C# code without any external dependencies (no WebBrowser control, ActiveX / COM or MSHTML dll), the only requirement is .NET 2.0 or higher.

Renderer1.png

Features and Benefits

  • Extensive HTML 4.01 and CSS level 2 specifications support.
  • Support separating CSS from HTML by loading stylesheet code separately.
  • Support text selection, copy-paste and context menu.
  • WinForms controls: HtmlPanel, HtmlLabel and HtmlToolTip.
  • Create images from HTML snippets.
  • Handles "real world" malformed HTML, it doesn't have to be XHTML.
  • 100% managed code and no external dependencies.
  • Supports .NET 2.0 or higher including Client Profile.
  • Lightweight single dll (~250K).
  • High performance and low memory footprint.
  • Extendable and configurable.
  • Powerful Demo application to explore and learn the library.

WinForms controls

  • HtmlPanel - The full power of HTML control build to replace WinForms WebBrowser control, accepts HTML, text selection, scrollbars, link click intercept, image load intercept and much more.
  • HtmlLabel - As WinForms label but accepts HTML, text selection, auto-size capabilities, transparent background and more.
  • HtmlTootlip - As WinForms ToolTip control but accepts HTML and ability to handle links.

Sample application

  • Render HTML content generated by rich web editors like forums, blogs, etc.
  • Render Office documents converted to HTML.
  • Create complex WinForms UI with HTML instead of numerous WinForms controls with complex layout logic.
  • Create WinForms UI that requires text selection with clipboard support.
  • Create images from HTML code snippets.

NuGet package install

NuGet package

Manual install

  • Download the binaries.
  • Reference the proper .NET release (2.0, 3.5, 4.0, 4.5) in your project.

Usage

  • Add HtmlRenderer to Visual Studio Toolbox (drag-drop the dll on it).
  • Drag-n-drop HtmlPanel, HtmlLabel or HtmlToolTip from the Toolbox.
  • Set the Text property with your HTML.

Updated Wiki: Home

$
0
0
The rich formatting power of HTML in your .NET applications using simple controls or static rendering code.
The library is 100% managed C# code without any external dependencies (no WebBrowser control, ActiveX / COM or MSHTML dll), the only requirement is .NET 2.0 or higher.

Renderer1.png

Features and Benefits

  • Extensive HTML 4.01 and CSS level 2 specifications support.
  • Support separating CSS from HTML by loading stylesheet code separately.
  • Support text selection, copy-paste and context menu.
  • WinForms controls: HtmlPanel, HtmlLabel and HtmlToolTip.
  • Create images from HTML snippets.
  • Handles "real world" malformed HTML, it doesn't have to be XHTML.
  • 100% managed code and no external dependencies.
  • Supports .NET 2.0 or higher including Client Profile.
  • Lightweight single dll (~250K).
  • High performance and low memory footprint.
  • Extendable and configurable.
  • Powerful Demo application to explore and learn the library.

WinForms controls

  • HtmlPanel - The full power of HTML control build to replace WinForms WebBrowser control, accepts HTML, text selection, scrollbars, link click intercept, image load intercept and much more.
  • HtmlLabel - As WinForms label but accepts HTML, text selection, auto-size capabilities, transparent background and more.
  • HtmlTootlip - As WinForms ToolTip control but accepts HTML and ability to handle links.

Sample application

  • Render HTML content generated by rich web editors like forums, blogs, etc.
  • Render Office documents converted to HTML.
  • Create complex WinForms UI with HTML instead of numerous WinForms controls with complex layout logic.
  • Create WinForms UI that requires text selection with clipboard support.
  • Create images from HTML code snippets.

NuGet package install

NuGet package

Manual install

  • Download the binaries.
  • Reference the proper .NET release (2.0, 3.5, 4.0, 4.5) in your project.

Usage

  • Add HtmlRenderer to Visual Studio Toolbox (drag-drop the dll on it).
  • Drag-n-drop HtmlPanel, HtmlLabel or HtmlToolTip from the Toolbox.
  • Set the Text property with your HTML.

Updated Wiki: Home

$
0
0
The rich formatting power of HTML in your .NET applications using simple controls or static rendering code.
The library is 100% managed C# code without any external dependencies (no WebBrowser control, ActiveX / COM or MSHTML dll), the only requirement is .NET 2.0 or higher.

Download the Demo application to explore HTML Renderer capabilities.

Renderer1.png

Features and Benefits

  • Extensive HTML 4.01 and CSS level 2 specifications support.
  • Support separating CSS from HTML by loading stylesheet code separately.
  • Support text selection, copy-paste and context menu.
  • WinForms controls: HtmlPanel, HtmlLabel and HtmlToolTip.
  • Create images from HTML snippets.
  • Handles "real world" malformed HTML, it doesn't have to be XHTML.
  • 100% managed code and no external dependencies.
  • Supports .NET 2.0 or higher including Client Profile.
  • Lightweight single dll (~250K).
  • High performance and low memory footprint.
  • Extendable and configurable.
  • Powerful Demo application to explore and learn the library.

WinForms controls

  • HtmlPanel - The full power of HTML control build to replace WinForms WebBrowser control, accepts HTML, text selection, scrollbars, link click intercept, image load intercept and much more.
  • HtmlLabel - As WinForms label but accepts HTML, text selection, auto-size capabilities, transparent background and more.
  • HtmlTootlip - As WinForms ToolTip control but accepts HTML and ability to handle links.

Sample application

  • Render HTML content generated by rich web editors like forums, blogs, etc.
  • Render Office documents converted to HTML.
  • Create complex WinForms UI with HTML instead of numerous WinForms controls with complex layout logic.
  • Create WinForms UI that requires text selection with clipboard support.
  • Create images from HTML code snippets.

NuGet package install

NuGet package

Manual install

  • Download the binaries.
  • Reference the proper .NET release (2.0, 3.5, 4.0, 4.5) in your project.

Usage

  • Add HtmlRenderer to Visual Studio Toolbox (drag-drop the dll on it).
  • Drag-n-drop HtmlPanel, HtmlLabel or HtmlToolTip from the Toolbox.
  • Set the Text property with your HTML.

Updated Wiki: Home

$
0
0
The rich formatting power of HTML in your .NET applications using simple controls or static rendering code.
The library is 100% managed C# code without any external dependencies (no WebBrowser control, ActiveX / COM or MSHTML dll), the only requirement is .NET 2.0 or higher.

Download the Demo application to explore HTML Renderer capabilities.

Renderer1.png

Features and Benefits

  • Extensive HTML 4.01 and CSS level 2 specifications support.
  • Support separating CSS from HTML by loading stylesheet code separately.
  • Support text selection, copy-paste and context menu.
  • WinForms controls: HtmlPanel, HtmlLabel and HtmlToolTip.
  • Create images from HTML snippets.
  • Handles "real world" malformed HTML, it doesn't have to be XHTML.
  • 100% managed code and no external dependencies.
  • Supports .NET 2.0 or higher including Client Profile.
  • Lightweight single dll (~250K).
  • High performance and low memory footprint.
  • Extendable and configurable.
  • Powerful Demo application to explore and learn the library.

WinForms controls

  • HtmlPanel - The full power of HTML control build to replace WinForms WebBrowser control, accepts HTML, text selection, scrollbars, link click intercept, image load intercept and much more.
  • HtmlLabel - As WinForms label but accepts HTML, text selection, auto-size capabilities, transparent background and more.
  • HtmlTootlip - As WinForms ToolTip control but accepts HTML and ability to handle links.

Sample application

  • Render HTML content generated by rich web editors like forums, blogs, etc.
  • Render Office documents converted to HTML.
  • Create complex WinForms UI with HTML instead of numerous WinForms controls with complex layout logic.
  • Create WinForms UI that requires text selection with clipboard support.
  • Create images from HTML code snippets.

NuGet package install

NuGet package

Manual install

  • Download the binaries.
  • Reference the proper .NET release (2.0, 3.5, 4.0, 4.5) in your project.

Usage

  • Add HtmlRenderer to Visual Studio Toolbox (drag-drop the dll on it).
  • Drag-n-drop HtmlPanel, HtmlLabel or HtmlToolTip from the Toolbox.
  • Set the Text property with your HTML.

Source

Authors

Updated Wiki: Home

$
0
0
The rich formatting power of HTML in your .NET applications using simple controls or static rendering code.
The library is 100% managed C# code without any external dependencies (no WebBrowser control, ActiveX / COM or MSHTML dll), the only requirement is .NET 2.0 or higher.

Download the Demo application to explore HTML Renderer capabilities.

Renderer1.png

Features and Benefits

  • Extensive HTML 4.01 and CSS level 2 specifications support.
  • Support separating CSS from HTML by loading stylesheet code separately.
  • Support text selection, copy-paste and context menu.
  • WinForms controls: HtmlPanel, HtmlLabel and HtmlToolTip.
  • Create images from HTML snippets.
  • Handles "real world" malformed HTML, it doesn't have to be XHTML.
  • 100% managed code and no external dependencies.
  • Supports .NET 2.0 or higher including Client Profile.
  • Lightweight single dll (~250K).
  • High performance and low memory footprint.
  • Extendable and configurable.
  • Powerful Demo application to explore and learn the library.

WinForms controls

  • HtmlPanel - The full power of HTML control build to replace WinForms WebBrowser control, accepts HTML, text selection, scrollbars, link click intercept, image load intercept and much more.
  • HtmlLabel - As WinForms label but accepts HTML, text selection, auto-size capabilities, transparent background and more.
  • HtmlToolTip - As WinForms ToolTip control but accepts HTML and ability to handle links.

Sample application

  • Render HTML content generated by rich web editors like forums, blogs, etc.
  • Render Office documents converted to HTML.
  • Create complex WinForms UI with HTML instead of numerous WinForms controls with complex layout logic.
  • Create WinForms UI that requires text selection with clipboard support.
  • Create images from HTML code snippets.

NuGet package install

NuGet package

Manual install

  • Download the binaries.
  • Reference the proper .NET release (2.0, 3.5, 4.0, 4.5) in your project.

Usage

  • Add HtmlRenderer to Visual Studio Toolbox (drag-drop the dll on it).
  • Drag-n-drop HtmlPanel, HtmlLabel or HtmlToolTip from the Toolbox.
  • Set the Text property with your HTML.

Source

Authors

Viewing all 73 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>