ComponentOne SuperTooltip for WinForms
C1.Win.C1SuperTooltip.4.5.2 Assembly / C1.Win.C1SuperTooltip Namespace / C1SuperLabel Class / Text Property
Example

In This Topic
    Text Property (C1SuperLabel)
    In This Topic
    Gets or sets the HTML text that is displayed in the control.
    Syntax
    'Declaration
     
    Public Shadows Property Text As System.String
    public new System.string Text {get; set;}
    Remarks

    C1SuperLabel can display HTML text, including cascading style sheets, lists, tables, and images. To include images in your tooltips, use an <img> tag as usual, for example:

    <img src='[resourcename]'/>

    where [resourcename] is the name of an embedded resource that contains the image. The example below illustrates this.

    Example

    The code below uses a C1SuperLabel to display a table with some images in it. The images are retrieved from the current application's resources.

    _c1SuperLabel.Text =
      "<table>" +
      "<tr>" +
      "<td><img src='newToolStripButton.Image'>" +
      "<td>This  is the second cell in the top row" +
      "<tr>" +
      "<td><img src='openToolStripButton.Image'>" +
      "<td>This  is the second cell in the bottom row." +
      "</table>";
    See Also