Search
DiagramView.RegisterItemType Method (Type, String, String, Int32)
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
)

Visual Basic  Copy Code

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

 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.

 Remarks

This method associates .NET item types with JavaScript types used in Canvas mode, and internally calls the RegisterItemClass method of Diagram to register the custom types for serialization.

 See Also