This documentation is for the old version. Go to the latest Graphics Mill docs

LayerCollection.Deserialize Method

Deserializes a layer collection.

Namespace: Aurigma.GraphicsMill.WinControls
Assembly: Aurigma.GraphicsMill.WinControls.VectorObjects (in Aurigma.GraphicsMill.WinControls.VectorObjects.dll)

Syntax

Visual Basic
Public Sub Deserialize ( _
	stream As Stream _
)
C#
public void Deserialize(
	Stream stream
)

Parameters

stream

Type: System.IO.Stream

The stream that contains the serialized data.

Remarks

To save the layer collection as serialization data, use the Deserialize(Stream) method.

Take into account, when you deserialize a layer collection, it deselects currently selected layer. So if you deserialize layers state you need to specify current layer using the MultiLayerViewer.CurrentLayer property before any manipulations under vector objects.

Note

Remember that binary format used for serialization is highly dependent on the build version, as the API may change from version to version, and properties may be added or removed.

See Also

Reference