Gets or sets user-defined identifier associated with this item.
Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf
C# Copy Code |
---|
public Object Id { get; set; } |
Visual Basic Copy Code |
---|
Public Property Id As Object |
An instance of any class derived from System.Object.
This property contains data that you define and is not used by the control in any way. You can associate with the item any value of a primitive data type, an object from the .NET class library or a custom class. If the id is a primitive value, it is serialized together with the item containing it when saving / loading the diagram. To serialize identifiers from complex types, handle the SerializeTag and DeserializeTag events.
Call FindNodeById or FindLinkById to find diagram items with the specified id. These methods compare identifiers by value using the Equals method.
WpfDiagram Programmer's Guide | © 2024 MindFusion |