Gets or sets user-defined identifier associated with this item.
Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming
SyntaxC#
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.
RemarksThis property contains user-defined data and is not used by the component in any way. You can associate any value with the item, including primitive data types, objects from the .NET class library, or instances of custom types.
If the id value is of a primitive type, it is serialized directly by the component along with the item that contains it when the diagram is saved or loaded. Custom types can be serialized automatically depending on the target format:
You can also implement custom serialization logic by handling the SerializeTag and DeserializeTag events using the .NET XML API, or the JsonSerializeTag and JsonDeserializeTag events using the MindFusion.Json API.
See Also