Search
Diagram.CreateItem Method
See Also
 





Creates an instance of the specified class.

Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming

 Syntax

C#  Copy Code

protected virtual IPersists CreateItem (
    string itemClass
)

Visual Basic  Copy Code

Protected Overridable Function CreateItem( _
    itemClass As String _
) As IPersists

 Parameters

itemClass

A string identifying class registered via the RegisterClass method.

 Return Value

An instance of the class.

 Remarks

By default, deserialized objects are instantiated via reflection if their class provides constructor without arguments. This method lets you create objects using a custom constructor.

 See Also