Interface ISerializationService
The service supporting the (de)serialization of diagrams and diagram items.
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.Windows.Diagrams.Core.dll
Syntax
public interface ISerializationService
Remarks
Note that this service can be customized and plugged into the ServiceLocator.
Methods
Deserialize(SerializationInfo)
Loads the specified serialization info.
Declaration
IEnumerable<IDiagramItem> Deserialize(SerializationInfo serializationInfo)
Parameters
SerializationInfo
serializationInfo
The serialization info. |
Returns
System.Collections.Generic.IEnumerable<IDiagramItem>
|
DeserializeItems(SerializationInfo, Boolean)
Deserializes the items.
Declaration
IEnumerable<IDiagramItem> DeserializeItems(SerializationInfo serializationInfo, bool makeUnique = false)
Parameters
SerializationInfo
serializationInfo
The serialization info. |
System.Boolean
makeUnique
If set to |
Returns
System.Collections.Generic.IEnumerable<IDiagramItem>
|
GetMetadataId(SerializationInfo)
Gets the metadata id.
Declaration
string GetMetadataId(SerializationInfo serializationInfo)
Parameters
SerializationInfo
serializationInfo
The serialization info. |
Returns
System.String
|
Serialize()
SerializeConnections(IEnumerable<IConnection>)
Serializes the connections.
Declaration
XElement SerializeConnections(IEnumerable<IConnection> connections)
Parameters
System.Collections.Generic.IEnumerable<IConnection>
connections
The connections. |
Returns
System.Xml.Linq.XElement
|
SerializeGroups(IEnumerable<IGroupable>, IList<IGroup>, XElement)
Serializes the groups.
Declaration
XElement SerializeGroups(IEnumerable<IGroupable> items, IList<IGroup> serializedGroups, XElement groupsElement)
Parameters
System.Collections.Generic.IEnumerable<IGroupable>
items
The items. |
System.Collections.Generic.IList<IGroup>
serializedGroups
The serialized groups. |
System.Xml.Linq.XElement
groupsElement
The groups element. |
Returns
System.Xml.Linq.XElement
|
SerializeItems(IEnumerable<IDiagramItem>)
Serializes the given items.
Declaration
SerializationInfo SerializeItems(IEnumerable<IDiagramItem> items)
Parameters
System.Collections.Generic.IEnumerable<IDiagramItem>
items
The items to serialize. |
Returns
SerializationInfo
A SerializationInfo instance. |
SerializeShapes(IEnumerable<IShape>)
Serializes the shapes.
Declaration
XElement SerializeShapes(IEnumerable<IShape> shapes)
Parameters
System.Collections.Generic.IEnumerable<IShape>
shapes
The shapes. |
Returns
System.Xml.Linq.XElement
|