ASP.NET Pack Programmer's Guide
DiagramView.SaveToString Method
See Also
 





Saves the diagram as an ASCII string.

Namespace: MindFusion.Diagramming.WebForms
Package: MindFusion.Diagramming.WebForms

 Syntax

C#  Copy Code

public string SaveToString (
    SaveToStringFormat format,
    bool clearDirty
)

Visual Basic  Copy Code

Public Function SaveToString( _
    format As SaveToStringFormat, _
    clearDirty As Boolean _
) As String

 Parameters

format
The format to save the diagram.
clearDirty
 Indicates whether the Dirty flag should be cleared. The default value is true.

 Return Value

A string containing the encoded diagram data.

 Remarks

There are no special characters in the returned string, so the result can be easily stored in a database field or embedded into an XML document. That might be used also for transferring a diagram between a web page with embedded NetDiagram and a web server, passing the string as a value of a hidden HTML field.

Since version 4.2.2 of NetDiagram, the string is created by base64-encoding the binary data stream. In older versions, the string consisted of characters representing the document's binary contents as a sequence of hexadecimal codes.

 See Also

DiagramView Members
DiagramView Class
LoadFromString
MindFusion.Diagramming.WebForms Namespace