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

(System.Drawing.Color)info.GetValue("FillColor", typeof(System.Drawing.Color)) causes error

I have a custom symbol. When I do a copy and paste of this symbol the following line causes an issue:

FillColor = (System.Drawing.Color)info.GetValue("FillColor", typeof(System.Drawing.Color));


If I take the line out, I don't have a problem, if I put it in, there are problems.

The line
diagramForm.Diagram.Controller.Paste( );
offers this exception:

Unable to cast object of type 'System.IO.MemoryStream' to type 'Syncfusion.Windows.Forms.Diagram.ClipboardNodeCollection'.



1 Reply

AD Administrator Syncfusion Team February 28, 2009 06:39 AM UTC

Hi RAS,
Can you post the full code or if possible a sample that produces the error that you are currently facing.

Thanks,
Dinesh


Loader.
Live Chat Icon For mobile
Up arrow icon