只使用代码创建超级工具提示很简单。使用以下代码:
C#:
// SuperTooltipInfo type describes Super-Tooltip SuperTooltipInfo superTooltip = new SuperTooltipInfo(); superTooltip.HeaderText = "Header text"; superTooltip.BodyText = "Body text with <strong>text-markup</strong> support. Header and footer support text-markup too."; superTooltip.FooterText = "My footer text"; // Assign tooltip to a control or DotNetBar component superTooltip1.SetSuperTooltip(textBoxX1, superTooltip); // To remove tooltip from a control or component use superTooltip1.SetSuperTooltip(textBoxX1, null);