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

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?

1 Reply

AD Administrator Syncfusion Team 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

Loader.
Up arrow icon