How to associate custom data with the items in the diagram (nodes and links)?
You can create your own class that derives from ShapeNode and add an ID property to it. To let users create items of your type, set the view.Behavior to Custom and the view.CustomNodeType to typeof(your_node_class). For an example showing how to use custom types with FlowChart.NET, check the IconNodes sample project. A more simple solution is to assign the id to the item’s Tag property. An additional “bonus” is that you will be able to use the FindNode method of Diagram to search for nodes by their tag/ID.