Click here to Skip to main content
15,885,366 members
Articles / Desktop Programming / Windows Forms

A Professional HTML Renderer You Will Use

Rate me:
Please Sign up or sign in to vote.
4.91/5 (205 votes)
29 Jan 2009BSD4 min read 736.5K   23.3K   531  
100% managed code that draws HTML on any device
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
	<head>
		<title>HtmlRenderer Class</title>
		<link rel="Stylesheet" href="property:Html_Demo.Bridge.StyleSheet" />
	</head>
	<body>
	<h1>The HtmlRenderer Class</h1>
	<code>System.Drawing.Html.HtmlRenderer</code>
	<blockquote>
	<p>The Html renderer is a <code><font color=blue>static</font></code> class that contains this two methods for drawing HTML:</p>
	
	
	<div class=caption><img src="property:Html_Demo.Bridge.MethodIcon"/> <code>Render(Graphics g, string html, PointF location, float width)</code></div>
	<div>
	Renders HTML on the specified device, by filling down using the specified 
	<code>width</code> starting from the specified location.
	</div>
	<p></p>
	<div class=caption><img src="property:Html_Demo.Bridge.MethodIcon"/> <code>Render(Graphics g, string html, RectangleF area, bool clip)</code></div>
	<div>
	Renders HTML on the specified device, by filling down using the specified 
	<code>width</code> starting from the specified location. If clip is set to true, it will only draw on the specified area.
	</div>
	
	<p>This class may have more functionality in future releases.</p>
	
	</blockquote>
	</body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The BSD License


Written By
Product Manager
United States United States
- I've been programming Windows and Web apps since 1997.
- My greatest concern nowadays is product, user interface, and usability.
- TypeScript / React expert

@geeksplainer

Comments and Discussions