Search
DiagramView.RegisterItemType Method (Type, String, String, Int32, String)
See Also
 





Registers a custom item class for serialization support.

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

 Syntax

C#  Copy Code

public void RegisterItemType (
    Type itemClass,
    string classId,
    string clientClassId,
    int classVersion,
    string jsonTemplate
)

Visual Basic  Copy Code

Public Sub RegisterItemType( _
    itemClass As Type, _
    classId As String, _
    clientClassId As String, _
    classVersion As Integer, _
    jsonTemplate As String _
)

 Parameters

itemClass

A Type instance identifying the item class.

classId

A class identifier to use when serializing, saving and loading items of the specified type.

clientClassId

A class identifier to use when serializing items of the specified type on the client side.

classVersion

A revision number of the item's class serialization format.

jsonTemplate

A JSON string representation of the node contents.

 See Also