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
close icon

Changing the lineTool color

Hello,
I'm using syncFusion to develop a graphic module that will be used to draw electrical plans and floor maps.. I used the Syncfusion Diagram and it's quit interessting, you've done an amzing job congrats :)
I implemented the Line tool and i am using it to draw the room's wall, but i need to change it's color to red.. i was wondering if you could help me and tell me how to change this property..
Thanks a lot

2 Replies

J. J.Nagarajan Syncfusion Team August 3, 2007 12:59 AM UTC

Hi Elia,

Thanks for your interest in Syncfusion product.

If you want to change the color of LineConnector then you can use LineStyle.LineColor property of the line. Please refer to the following code snippet

LineConnector line = new LineConnector(symbol1.PinPoint, symbol2.PinPoint);
line.LineStyle.LineColor = Color.Red;
this.diagram.Model.AppendChild(line);
symbol1.CentralPort.TryConnect(line.HeadEndPoint);
symbol2.CentralPort.TryConnect(line.TailEndPoint);

Pleased refer to the attached sample

http://websamples.syncfusion.com/samples/Diagram.Windows/F66764/main.htm

Please let me know if you have any questions.

Thanks,
Nagaraj


EC Elia Chkayra August 3, 2007 07:50 AM UTC

Thank you a lot for the help.
I'll let you know if i have further question.
Keep up the great work.

Loader.
Live Chat Icon For mobile
Up arrow icon