HtmlPanel

Represents a control that displays any HTML file and a corresponding CSS style sheet as embedded HTML.

The HtmlPanel control can be used to embed full HTML documents within a Wisej.NET application.

circle-info

For a full list of properties, methods and events see the API documentation.arrow-up-right

Features

Custom HTML

Any HTML file or code can be directly linked to the HtmlPanel control using the Html or HtmlSource property.

//For the Html property, put the entire HTML code as a string
htmlPanel1.Html = "<b>Example Text Here</b>";

//For the HtmlSource property, provide a string contining the path to a HTML file
htmlPanel1.HtmlSource = "MyHtmlFile.html";

Clicks inside the HtmlPanel can be handled with the ElementClick event.

triangle-exclamation
HtmlPanel displaying embedded HTML content

Advanced

JavaScript Widget

Item
Description

Class name

"wisej.web.ScrollableHtmlPanel"

Theme appearance

"widget", see Themesarrow-up-right.

Child components

"pane" is the container for the HTML content. See JavaScript.

Last updated

Was this helpful?