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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Real Custom Links

Thread ID:





67283 Aug 13,2007 07:39 AM UTC Aug 23,2007 12:35 PM UTC WinForms 4
Tags: Diagram
Josef Gruber
Asked On August 13, 2007 07:39 AM UTC

Is it possible - and how - to create a real custom link, e.g. a circle- or ellipse-link ?

I have read message:
"Subject: How do I extend the Link types in version ?", http://www.syncfusion.com/support/forums/message.aspx?&MessageID=63107

But I do not want a line. My custom link should be any 2D figure (custom drawn).

Best Regards

Meera Fathima [Syncfusion]
Replied On August 13, 2007 01:28 PM UTC

Hello Josef ,

If your intention is to draw some other graphics path for the connector rather than the line shape, you can do this by customizing the Diagram.Base\Src\Nodes\LineBased\Connectors\ConnectorBase class and overrriding the DrawPath() method with the desired code implementation. The ConnectorBase. DrawSegment() method draws the line graphics using the Graphics.DrawLine() method. And you need to implement other desired methods such as MergeNearBridges(),RenderBridge() and etc., with the necessary code implementation in order to achieve your requirement. And you need to create your own custom shape connector class that inherits the custom version of ConnecotrBase class. Referring to the Diagram.Base\Src\Nodes\LineBased\Connectors\ ConnectorBase , LineConnector and OrthogonalConnector classes will give you an idea about how to go about this.

If I have misunderstood your requirement, could you please explain me in detail? So that I can work in depth and try to send a better solution.

Thanks for your interest in Syncfusion products.

Best Regards,

Syncfusion, Inc.

Josef Gruber
Replied On August 14, 2007 12:55 PM UTC

Until now I have only implemented the DrawPath() method in my link. It works, but I have problems with the refreshing of my link and some others.

Is it possible to get more hints and examples (MergeNearBridges(),RenderBridge())?

I do not have the source code of your product. Is it possbile to get the source of the LineConnector or OrthogonalConnector class?

Thank you for help

Meera Fathima [Syncfusion]
Replied On August 16, 2007 01:37 PM UTC

Hello Josef,

At present Essential Diagram don't have any sample that dmeonstrates about drawing link with custom shape. Also could you please send me some image that shows your requirement. So that I can look in detail and will provide an alternate method if any.

And if you have binary version of the Essential Diagram, it is not possible to provide you the source files.

Please let me know if you have any questions.

Best Regards,

Syncfusion, Inc.

Josef Gruber
Replied On August 23, 2007 12:35 PM UTC

Hello Meera,

I've only overriden the methods DrawPath(Graphics gfx) and DoHandleMoveRelated(IHandle, SizeF).

Until now everything looks fine and I make good progress.

Thank you and Best Regards,


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon