Raised when the Tag of a diagram item must be serialized into an XML document.
Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming
C# Copy Code |
---|
public event EventHandler<SerializeTagEventArgs> SerializeTag |
Visual Basic Copy Code |
---|
Public Event SerializeTag As EventHandler(Of SerializeTagEventArgs) |
SerializeTag event handlers receive an argument of type SerializeTagEventArgs. The following SerializeTagEventArgs members provide information relevant to the event:
Member name | Description |
---|---|
The object whose Tag is being serialized. This object can be either a diagram item, group, cell or anchor point. | |
The Tag object being serialized. | |
An XmlElement instance where the XML representation of the Tag should be saved. | |
An XmlPersistContext object providing information about the document being serialized, along with methods that help you serialize data to XML. | |
Set this flag to true if you perform custom tag serialization. |
Only tags of simple value types can be saved and loaded automatically to/from the XML document. You must provide your own serialization for complex types by implementing this event and DeserializeTag.
C# Copy Code |
---|
private void Write(string fileName) |
Visual Basic Copy Code |
---|
Private Sub Write(ByVal fileName As String) |