Creates a DiagramElement for the specified diagram model item.
Namespace:
Mindscape.WpfDiagramming.FoundationAssembly: Mindscape.WpfDiagramming.Foundation (in Mindscape.WpfDiagramming.Foundation.dll)
Version: 2.0.0.0 (2.0.0.0)
Syntax
| C# |
|---|
DiagramElement CreateElement( Object diagramItem ) |
| Visual Basic (Declaration) |
|---|
Function CreateElement ( _ diagramItem As Object _ ) As DiagramElement |
Parameters
- diagramItem
- Type: System..::.Object
The diagram model item.
Return Value
A DiagramElement that can be used to display the specified item.
Remarks
The framework will set the Content property of
the newly created DiagramElement; it is not necessary for the factory to do this itself.