LineTool: how to change line width in code?

Hello,
How can I change drawing line style and properties when I use Syncfusion.Windows.Forms.Diagram.LineTool ?

I do these steps in my code:
diagram1.Controller.ActivateTool("LineTool");
LineTool tool = (LineTool)diagram1.Controller.ActiveTool;

but LineTool class does not have any properties or methods to change line style.

I know that it is imposible to use PeropertyEditor component, but
all operations must be done in code

1 Reply

DM Dinesh M Syncfusion Team February 18, 2010 11:10 AM UTC

Hi Witold,

Thank you for your interest in Syncfusion products.

You can achieve this requirement by customizing the LineTool, I have created a sample that explains the way to achieve you requirement.

http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=Diagram_WF_CustomTool-1343334095.zip

Regards,
Dinesh

Loader.
Up arrow icon