Delegate types that used to define events have been removed. Events are now defined using the generic EventHandler delegate with the respective EventArgs-derived type as argument. For example, NodeCreated is now defined as follows:
C# Copy Code |
---|
public event EventHandler<NodeEventArgs> NodeCreated; |
The follow list shows all delegate types that have been removed:
Removed delegates in the MindFusion.Diagramming.Import namespace:
Removed delegates in the MindFusion.Diagramming.Lanes namespace:
The following table lists the renamed types.
Old name | New name |
---|---|
LinkStyle | |
TableStyle | |
GroupImportedArgs |
The following types were moved from the MindFusion.Diagramming.Components to the MindFusion.Diagramming namespace:
The following table lists the renamed members.
Old name (old type) | New name (new type) |
---|---|
Diagram.TableStyle (TableStyle) | |
Diagram.LinkStyle (LinkStyle) | |
DiagramLink.Style (LinkStyle) | |
TableNode.Style (TableStyle) | |
TreeViewItem.LabelColor (Color) | |
ContainerNode.CaptionColor (Color) | |
TableNode.CaptionColor (Color) | |
DiagramItem.TextColor (Color) | |
DiagramItem.ShadowColor (Color) |
The z-order related methods in the DiagramItem class now also accept a single boolean argument.
Several collections have been converted to generic types. The table below provides an overview of this change.
Old signature | New signature |
---|---|
ItemCollectionBase | |
PersistableCollection | |
ReadOnlyCollection |
In addition the collection classes no longer implement IList and ICollection. Calls that expect those interfaces will result in compilation errors. The collection classes also do not expose the Capacity property.