---
title: "Serialization Support in Diagram Windows Forms"
published_at: "2010-04-29T19:13:00+00:00"
modified_at: "2025-03-20T08:09:46+00:00"
url: "https://www.syncfusion.com/blogs/post/serialization-support-in-diagram-windows-forms"
excerpt: "Essential Diagram for Windows Forms provides extensible support for serialization, which is the process of reading and writing a collection of objects to and from an I/O stream. Essential Diagram uses the .NET serialization framework provided by the System.Runtime.Serialization namespace...."
taxonomy_category:
  - "Desktop"
  - "Windows Forms"
taxonomy_post_tag:
  - "2010 Volume 2"
  - "binary"
  - "diagram"
  - "serialization"
  - "SOAP"
  - "Window Forms"
---

# Serialization Support in Diagram Windows Forms

[Syncfusion Guest Blogger](https://www.syncfusion.com/blogs/author/syncfusion-guest-blogger)

![Image](https://www.syncfusion.com/blogs/wp-content/uploads/2018/08/serialization_support_9f86ee9f.png)


Essential Diagram for Windows Forms provides extensible support for serialization, which is the process of reading and writing a collection of objects to and from an I/O stream. Essential Diagram uses the .NET serialization framework provided by the System.Runtime.Serialization namespace.

Serialization and de-serialization can be easily performed on diagram (.edd) files and symbol palette (.edp) files.

The Diagram class contains methods for loading and saving files in two of the formats that are supported by the .NET serialization framework.

##### Binary Format

The LoadBinary and SaveBinary methods serialize diagrams symbol palettes to files and I/O streams in a binary format.

##### SOAP Format

The LoadSOAP and SaveSOAP methods use the SOAP XML format to serialize diagrams and symbol palettes to files and I/O streams.

c#

```
            case "SaveBinary":
                 this.diagram1.SaveBinary(path + @"\Test.edd");
                 break;

             case "LoadBinary":
                 if(File.Exists(path + @"\Test.edd"))
                 this.diagram1.LoadBinary(path + @"\Test.edd");
                 break;

             case "SaveSoap":
                 this.diagram1.SaveSoap(path + @"\Test.xml");
                 break;

             case "LoadSoap":
                 if (File.Exists(path + @"\Test.xml"))
                 this.diagram1.LoadSoap(path + @"\Test.xml");
                 break; 
```

![image](https://blog.syncfusion.com/wp-content/uploads/2018/08/image-537.png "image")

Diagram Serialized to SOAP Format
