ComponentOne Menus and Toolbars for WinForms
C1.Win.C1SuperTooltip.4.8 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>";
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also