Search
API Changes

Removed delegates

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:

  • ControlNodeEventHandler
  • CopyHostedControlEventHandler
  • InPlaceEditEventHandler
  • PaintControlEventHandler
  • AnchorPointEventHandler
  • AreaEventHandler
  • CellEventHandler
  • CellValidationEventHandler
  • ClipboardEventHandler
  • ContainerChildEventHandler
  • DiagramEventHandler
  • DrawAnchorPointEventHandler
  • DrawCellEventHandler
  • DrawItemEventHandler
  • DrawLinkEventHandler
  • DrawNodeEventHandler
  • EditCellTextEventHandler
  • EditLinkTextEventHandler
  • EditNodeTextEventHandler
  • GroupEventHandler
  • HitTestEventHandler
  • InstantiateItemEventHandler
  • ItemEventHandler
  • LinkEventHandler
  • LinkValidationEventHandler
  • NodeEventHandler
  • NodeValidationEventHandler
  • RepaintEventHandler
  • RowEventHandler
  • SerializeTagEventHandler
  • ShapeEventHandler
  • TimerEventHandler
  • TreeItemEventHandler
  • TreeItemValidationEventHandler
  • UndoEventHandler
  • UndoValidationEventHandler
  • ValidationEventHandler

Removed delegates in the MindFusion.Diagramming.Import namespace:

  • ConnectorImportedEventHandler
  • GroupImportedEventHandler
  • ShapeImportedEventHandler

Removed delegates in the MindFusion.Diagramming.Lanes namespace:

  • CellBoundsEventHandler

Renamed types and members

The following table lists the renamed types.

Old name

New name

LinkStyle

LinkShape

TableStyle

SimpleShape

GroupImportedArgs

GroupImportedEventArgs

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.TableShape (SimpleShape)

Diagram.LinkStyle (LinkStyle)

Diagram.LinkShape (LinkShape)

DiagramLink.Style (LinkStyle)

DiagramLink.Shape (LinkShape)

TableNode.Style (TableStyle)

TableNode.Shape (SimpleShape)

TreeViewItem.LabelColor (Color)

TreeViewItem.LabelBrush (Brush)

ContainerNode.CaptionColor (Color)

ContainerNode.CaptionBrush (Brush)

TableNode.CaptionColor (Color)

TableNode.CaptionBrush (Brush)

DiagramItem.TextColor (Color)

DiagramItem.TextBrush (Brush)

DiagramItem.ShadowColor (Color)

DiagramItem.ShadowBrush (Brush)

The z-order related methods in the DiagramItem class now also accept a single boolean argument.

Collections

Several collections have been converted to generic types. The table below provides an overview of this change.

Old signature

New signature

ItemCollectionBase

ItemCollectionBase<T>

PersistableCollection

PersistableCollection<T>

ReadOnlyCollection

ReadOnlyCollection<T>

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.