HtmlRenderer.HtmlContainer
Low level...
Properties
CssData - the parsed stylesheet data used for handling the html.
Bridge - used to resolve external references in html code (property, method calls).
AvoidGeometryAntialias - Gets or sets a value indicating if antialiasing should be avoided for geometry like backgrounds and borders (default - false).
AvoidTextAntialias - Gets or sets a value indicating if antialiasing should be avoided for text rendering (default - false).
ScrollOffset - The scroll offset of the html.
Location - the top-left most location of the rendered html.
MaxSize - the max width and height of the rendered html, effects layout, actual size cannot exceed this values. Set zero for unlimited.
ActualSize - The actual size of the rendered html (after layout).
Methods
GetHtml(HtmlGenerationStyle styleGen = HtmlGenerationStyle.Inline) - Get html from the current DOM tree with style if requested.
PerformLayout(Graphics) - Measures the bounds of box and children, recursively.
PerformPaint(Graphics) - Render the html using the given device.
HandleMouseDown(Control, MouseEventArgs) - Handle mouse down to handle selection.
HandleMouseUp(Control, MouseEventArgs) - Handle mouse up to handle selection and link click.
HandleMouseDoubleClick(Control, MouseEventArgs) - Handle mouse double click to select word under the mouse.
HandleMouseMove(Control, MouseEventArgs) - Handle mouse move to handle hover cursor and text selection.
HandleMouseLeave(Control, MouseEventArgs) - Handle mouse move to handle hover cursor.
HandleKeyDown(parent, KeyEventArgs) - Handle key down event for selection and copy.
Events
LinkClicked - Raised when the user clicks on a link in the html, Allows canceling the execution of the link.
Refresh - Raised when html renderer requires refresh of the control hosting (invalidation and re-layout).
RenderError - Raised when an error occured during html rendering.
ImageLoad - Raised when an image is about to be loaded by file path or URI. This event allows to provide the image manually, if not handled the image will be loaded from file or download from URI.