We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

upgrade issue to 4.302.0.30...missing method

LinkTool aTool = new LinkTool("aTool"); nolonger works in ver4.302.0.30


method available is public LinkTool(DiagramController controller);

Any workaround available??

thanks

1 Reply

MF Meera Fathima Syncfusion Team June 20, 2007 11:17 AM UTC


Hello Suj,

I am sorry about this delay in responding. And regarding your query, I am afraid that it is difficult to implement the custom link tool that has the public LinkTool(string name) initialize method. However if your intension is to specify the tool name within the initialize method, you can do this by creating the custom version of Link tool and use public MyLinkTool( DiagramController controller,string name ): base( controller ) initialize method in that custom link tool class.

Below is the sample code snippet for your reference.

// Create customized link tool class.
public class MyLinkTool : LinkTool
{
public MyLinkTool( DiagramController controller,string name )
: base( controller )
{}
}

// Register the custom link tool in the main form.

MyLinkTool myLnkTool = new MyLinkTool(this.diagram1.Controller,"MyLinkTool");
myLnkTool.Name = "MyLinkTool";
this.diagram1.Controller.RegisterTool(myLnkTool);

// And activate the custom linktool where ever you want( for e.g. from the menu item click event).

private void menuItem2_Click(object sender, System.EventArgs e)
{
this.diagram1.ActivateTool("MyLinkTool");
}

Please let me know whether the above informations are helpful to you. And feel free to contact us if you have any more questions regarding this. We will be glad to assist you.

Thanks for your interest in Syncfusion products.

Best Regards,
Meera.

Loader.
Live Chat Icon For mobile
Up arrow icon