Nevron Forum

Adding tooltip to NShape/ NRoutableConnector

https://www.nevron.com/Forum/Topic2881.aspx

By Gauri Srinivas - Friday, January 8, 2010

Hi,

Is it possible to add a tooltip to an Nshape / NRoutable Connector?

I wasnt able to find an appropriate method to do this.

Thanks,

Gauri

By Ivo Milanov - Tuesday, January 12, 2010

Hi Gauri,

Tooltips and cursors are applied consistently to both WinForm and WebForm diagrams. They are implemented as interactivity attributes of each shape. The following code adds a tooltip to a shape:

NTooltipAttribute tooltipAttribute = new NTooltipAttribute("Some tooltip");
shape.Style.InteractivityStyle.InteractivityAttributes.Add(tooltipAttribute);

Take a look at the following topics:
Framework > Presentation Layer > Graphics > Interactivity Style > Tooltip
Framework > Presentation Layer > Graphics > Interactivity Style > Cursor

Best regards,
Ivo