Framework / Presentation Layer / Graphics / Interactivity Style / Tooltip

In This Topic
Tooltip
In This Topic

Tooltips are displayed when the mouse hovers over the object. The tooltip is represented by an instance of the NTooltipAttribute class. You assign a tooltip to the object by creating an instance of this class and adding it to the InteractivityAttributes collection. For example:

C#
Copy Code
NTooltipAttribute tooltipAttribute = new NTooltipAttribute("Some tooltip");
someObject.InteractivityStyle.InteractivityAttributes.Add(tooltipAttribute);
Visual Basic
Copy Code
Dim tooltipAttribute As New NTooltipAttribute("Some tooltip")
someObject.InteractivityStyle.InteractivityAttributes.Add(tooltipAttribute)

You can also use the Tooltip property of the NInteractivityStyle object:

C#
Copy Code
someObject.InteractivityStyle.Tooltip = new NTooltipAttribute("Some tooltip");
Visual Basic
Copy Code
someObject.InteractivityStyle.Tooltip = New NTooltipAttribute("Some tooltip")
See Also