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.
Unfortunately, activation email could not send to your email. Please try again.

LineTool: how to change line width in code?

Thread ID:

Created:

Updated:

Platform:

Replies:

92978 Feb 17,2010 04:17 AM Feb 18,2010 06:10 AM Windows Forms 1
loading
Tags: Diagram
Witold Slirz
Asked On February 17, 2010 04:17 AM

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

Dinesh M [Syncfusion]
Replied On February 18, 2010 06:10 AM

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;