Add points

Is there a tool that can be used to draw points when user clicks on the diagram? The points added should be movable and delete-able.


1 Reply

PM Pandi Murugan A Syncfusion Team August 15, 2011 12:20 PM UTC

Hi JVM,

Thanks for using Syncfusion products and sorry for the delay in getting back to you.

We suggest you to use InsertNodeTool to achieve your requirement. Here is the code snippet for your reference.

[C#]

Ellipse pt = new Ellipse(0, 0, 5, 5);
pt.FillStyle.Color = Color.Black;

//Activate insertnode tool with the point node
diagram1.Controller.NodeToInsert = pt;
diagram1.Controller.ActivateTool("InsertNodeTool");


Here is the sample which meets your requirement.

F100436-1668839153.zip

Please try this and let me know if this helps.

Note : The InsertNodeTool is available in the latest version.

Regards,
Pandi Murugan A


Loader.
Up arrow icon