Version

ToolTipDisplayStyle Property

Returns or sets a value that specifies the style of all tooltips.
Syntax
'Declaration
 
Public Property ToolTipDisplayStyle As ToolTipDisplayStyle
public ToolTipDisplayStyle ToolTipDisplayStyle {get; set;}
Remarks

When set to Formatted, tooltips will be displayed using the ToolTipTextFormatted property. If ToolTipTextFormatted is not set for a particular tool, then the tooltip will fall back to the ToolTipText or the Caption of the tool.

When this property is set to None, no tooltips will be displayed for any tools. This overrides the ShowToolTips property, as well as the ShowToolTips property.

Example
The following code demonstrates the ToolTipTitle, ToolTipTextFormatted, and ToolTipDisplayStyle properties.

Imports Infragistics.Win

' This will tell all tools on the Toolbar to use Formatted tooltips only. This means they
' will use the tool.SharedProps.ToolTipTextFormatted, not tool.SharedProps.ToolTipTextFormatted
Me.UltraToolbarsManager1.ToolTipDisplayStyle = UltraWinToolbars.ToolTipDisplayStyle.Formatted

' Set a title for the tooltip. This applies regardless of the ToolTipDisplayStyle
Me.UltraToolbarsManager1.Tools("ButtonTool1").SharedProps.ToolTipTitle = "This is the tooltip title"

' Set the regular ToolTipText. This will only appear when ultraToolbarsManager1.ToolTipDisplayStyle 
' is set to Standard or if it is set to Default and the ToolTipTextFormatted is blank.
Me.UltraToolbarsManager1.Tools("ButtonTool1").SharedProps.ToolTipText = "This is an unformatted tooltip"

' Set the ToolTipTextFormatted. This will only appear when ultraToolbarsManager1.ToolTipDisplayStyle 
' is set to Formatted or Default.
Me.UltraToolbarsManager1.Tools("ButtonTool1").SharedProps.ToolTipTextFormatted = "This is a <span style=""font-weight:bold;"">formatted</span>&edsp;<span style=""color:Red;"">tooltip</span>."
using Infragistics.Win;

// This will tell all tools on the Toolbar to use Formatted tooltips only. This means they
// will use the tool.SharedProps.ToolTipTextFormatted, not tool.SharedProps.ToolTipTextFormatted
this.ultraToolbarsManager1.ToolTipDisplayStyle = Infragistics.Win.UltraWinToolbars.ToolTipDisplayStyle.Formatted;

// Set a title for the tooltip. This applies regardless of the ToolTipDisplayStyle
this.ultraToolbarsManager1.Tools["ButtonTool1"].SharedProps.ToolTipTitle = "This is the tooltip title";

// Set the regular ToolTipText. This will only appear when ultraToolbarsManager1.ToolTipDisplayStyle 
// is set to Standard or if it is set to Default and the ToolTipTextFormatted is blank.
this.ultraToolbarsManager1.Tools["ButtonTool1"].SharedProps.ToolTipText = "This is an unformatted tooltip";

// Set the ToolTipTextFormatted. This will only appear when ultraToolbarsManager1.ToolTipDisplayStyle 
// is set to Formatted or Default.
this.ultraToolbarsManager1.Tools["ButtonTool1"].SharedProps.ToolTipTextFormatted = "This is a <span style=\"font-weight:bold;\">formatted</span>&edsp;<span style=\"color:Red;\">tooltip</span>.";
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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