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

Can I use a metafile as a symbol and then add programtically ports to it?

Thread ID:





20852 Oct 26,2004 06:50 PM UTC Oct 26,2004 08:19 PM UTC WinForms 1
Tags: Diagram
Eric Silver
Asked On October 26, 2004 06:50 PM UTC

I have manage to use the sample code to be able to add a wmf file to the diagram but I am not able to add ports to it since it is not a symbol. Is there a way to have a symbol which is represented by a wmf file?

Administrator [Syncfusion]
Replied On October 26, 2004 08:19 PM UTC

Hi Eric, Here are a couple of Knowledgebase articles which should help you achieve what you are seeking: - How do I create a Custom Symbol? - How do I add ports to my Symbol? Here is a sample based on these Knowledgebase Articles, where a custom symbol consisting of a outer Rectangle, an inner BitMapNode with 2 ports is cretaed in the MySymbol class. You can use a MetaFileNode instead of a BitMapNode. Regards Arun


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

Live Chat Icon For mobile
Live Chat Icon