Hi,
All custom classes you want to take part in the serialization process should be marked as Serializable. If you do not want to serialize any of the class fields simply mark it as NonSerialized.
Best Regards,Nevron Support Team
I implemented a custom port but the saving and loading of the diagram does not work. How do I save a drawing with custom classes?
Private Sub butSave_Click(sender As Object, e As EventArgs) Handles butSave.Click
pm.SaveDocumentToFile(document,
Private Sub butLoad_Click(sender As Object, e As EventArgs) Handles butLoad.Click
document = pm.LoadDocumentFromFile(
view.Document = document
Public Class DLogicalLinePort
circle.Paint(context)
End