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.

Changing the lineTool color

Thread ID:

Created:

Updated:

Platform:

Replies:

66764 Aug 2,2007 03:01 AM Aug 3,2007 03:50 AM Windows Forms 2
loading
Tags: Diagram
Elia Chkayra
Asked On August 2, 2007 03:01 AM

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

J.Nagarajan [Syncfusion]
Replied On August 2, 2007 08:59 PM

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

Elia Chkayra
Replied On August 3, 2007 03:50 AM

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

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.

;