Several controls support a DRAWHTML property that allows them to use a limited subset of HTML markup tags to control their text formatting. This is not true HTML, rather it is a simple markup language that may offer some familiarity to developers and make it easier to use.
The supported tags are:
Tag | Description |
---|---|
<b> | Specifies that the text should be rendered in a bold font. |
<baseline> | Specifies the alignment at the baseline of the current line's text. |
<big> | Specifies that the text should be displayed in a larger font. |
<bottom> | Vertically align text to the bottom edge. |
<br> | Insert a line break. |
<center> | Centers subsequent text. |
<code> | Specifies a code sample. |
<em> | Emphasizes text by drawing it with an italic font (see also the "<i>" tag). |
<font> | Specifies a new font, size and color for rendering the text. |
<h1> - <h6> | Draws the text with a heading style. |
<hr> | Draws a horizontal rule. |
<i> | Emphasizes text by drawing it with an italic font (see also the "<em>" tag). |
<left> | Left-aligns subsequent text. |
<middle> | Vertically centers text (see also the <vcenter> tag). |
<pre> | Draws the text in a fixed-width font. |
<right> | Aligns text to the right edge. |
<s> | Draws text in strike-through style (see also the "<strike>" tag). |
<small> | Specifies that the text should be displayed in a smaller font. |
<span> | Specifies an inline text container. |
<strike> | Draws text in strike-through style (see also the "<s>" tag). |
<sub> | Specifies that the text should be displayed in subscript, using a smaller font. |
<sup> | Specifies that the text should be displayed in superscript, using a smaller font. |
<t> | Inserts tabulation. |
<table> | Specifies that the contained content is organized into a table with rows and columns. |
<td> | Specifies a cell in a table. |
<top> | Vertically aligns text to the top edge. |
<tr> | Specifies a row in a table. |
<vcenter> | Vertically centers text (see also the <middle> tag). |