San*_*eep 1 text infragistics tooltip
我需要显示一个工具提示"姓名:山姆",其中字符"Sam"将是粗体.我怎样才能做到这一点?
尝试以下代码
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>";
Run Code Online (Sandbox Code Playgroud)
链接到infragistics在线帮助
希望这可以帮助