Saves the diagram as an ASCII string.
Namespace: MindFusion.Diagramming.WebForms
Package: MindFusion.Diagramming.WebForms
C# Copy Code |
---|
public string SaveToString ( |
Visual Basic Copy Code |
---|
Public Function SaveToString( _ |
A string containing the encoded diagram data.
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.