Search
Diagram.SaveToStream Method (Stream, Boolean)
See Also
 





Saves the binary contents of a diagram to the specified .NET stream, optionally clearing the Dirty flag.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public void SaveToStream (
    Stream stream,
    bool clearDirty
)

Visual Basic  Copy Code

Public Sub SaveToStream( _
    stream As Stream, _
    clearDirty As Boolean _
)

 Parameters

stream
An instance of a System.IO.Stream-derived class.
clearDirty
Indicates whether the Dirty flag should be cleared.

 Remarks

Serializes the current diagram as a sequence of bytes represented by stream. The stream may wrap a file, a memory buffer, a TCP socket, and more. The stream contents can be loaded later using the LoadFromStream method.

 See Also