1
我需要显示一个工具提示说“名称:山姆”,其中字符“山姆”将是粗体。我怎样才能做到这一点?在UltraTooltipManager中格式化文本
我需要显示一个工具提示说“名称:山姆”,其中字符“山姆”将是粗体。我怎样才能做到这一点?在UltraTooltipManager中格式化文本
试试下面的代码
UltraToolTipInfo tipInfo = new UltraToolTipInfo();
tipInfo.ToolTipTextStyle = ToolTipTextStyle.Formatted;
this.ultraToolTipManager1.SetUltraToolTip(this.YourControl, tipInfo);
this.ultraToolTipManager1.DisplayStyle = ToolTipDisplayStyle.Office2007;
tipInfo.Appearance.BackColor = Color.Yellow;
tipInfo.ToolTipTextFormatted = "Name: <span style=\"font-weight:bold;\">Sam</span>";
link到Infragistics的在线帮助
希望这有助于
正要张贴了同样的答案,因为我做了一些工作:) – Sandeep 2012-03-06 10:56:09
以下是指向格式化文本的所有受支持标记和属性的链接:http://help.infragistics.com/NetAdvantage/WinForms/2011.2/CLR2.0/?page=WinFormattedLinkLabel_Formatting_Text_and_Hyperlinks.html – alhalama 2012-03-11 16:56:43