Articles in this section
Category / Section

How to link an external stylesheet to the document displayed inside the WinForms HTMLUIControl at runtime?

1 min read

Style sheets CSS

The external stylesheets contain the styles to be applied for the elements in the HTML document. The HTMLUI control supports formatting the HTML document with external stylesheets.

The LoadCSS method of the HTMLUI control loads the styles from the specified CSS and refreshes the current document on the HTMLUI control with the applied styles.

C#

this.htmluiControl1.LoadCSS(@"C:\MyProjects\LoadCSS\style.css");

 

VB

Me.htmluiControl1.LoadCSS("C:\MyProjects\LoadCSS\style.css")

 

Reference link: https://help.syncfusion.com/windowsforms/html-viewer/style-sheets-css

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied