Category / Section
What are the HTML and CSS tags are supported in SuperToolTip?
1 min read
In SuperToolTip, the following Text Formatting tags are supported.
- Bold text
- Important text
- Italic text
- Emphasized text
- Marked text
- Small text
- Deleted text
- Inserted text
- Color.
The following code examples demonstrates the same.
C#
//HTML // Adding Html tags into SuperToolTip Button1.Footer.Size = new System.Drawing.Size(200, 100); Button1.Footer.RenderHtml = true; Button1.Footer.Text = "<p>This text is normal.</p> " + "<p>My favorite <ins>color</ins> is red.</p>"; this.superToolTip1.SetToolTip(this.buttonAdv1, Button1) //CSS //Adding CSS tags into SuperToolTip Button2.Footer.Size = new System.Drawing.Size(300, 200); Button2.Footer.RenderHtml = true; Button2.Footer.Text = "<!DOCTYPE html>" + "<html>" + "<head>" + "<style>" + "body { color: blue; }" + "h1 { color: green;}" + "</style>" + "</head>" + "<body>" + "<h1>This is heading 1</h1>" + "<p>This is an ordinary paragraph. Notice that this text is blue. The default text color for a page is defined in the body selector.</p>" + "</body>" + "</html>"; this.superToolTip1.SetToolTip(this.buttonAdv2, Button2)
VB
'HTML ‘Adding Html tags into SuperToolTip Button1.Footer.Size = New System.Drawing.Size(200, 200) Button1.Footer.RenderHtml = True Button1.Footer.Text = "<p>This text is normal.</p> " & "<p>My favorite <ins>color</ins> is red.</p>" & "<p><em>This text is emphasized</em>.</p>" & "<h2>HTML <mark>Marked</mark> Formatting</h2>" Me.superToolTip1.SetToolTip(Me.buttonAdv1, Button1) 'CSS ‘Adding CSS tags into SuperToolTip Button2.Footer.Size = New System.Drawing.Size(300, 200) Button2.Footer.RenderHtml = True Button2.Footer.Text = "<!DOCTYPE html>" & "<html>" & "<head>" & "<style>" & "body { color: blue; }" & "h1 { color: green;}" & "</style>" & "</head>" & "<body>" & "<h1>This is heading 1</h1>" & "<p>This is an ordinary paragraph. Notice that this text is blue. The default text color for a page is defined in the body selector.</p>" & "</body>" & "</html>" Me.superToolTip1.SetToolTip(Me.buttonAdv2, Button2)
Figure 1. Mouse Hover the Button to Show HTML tags
Figure 2. Mouse Hover the Button to Show CSS tags
Sample Links:
C#: HTML and CSS tags supported by SuperToolTip C#
VB: HTML and CSS tags supported by SuperToolTip VB