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.