Gets or sets custom data associated with this diagram.
Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming
C# Copy Code |
---|
public Object Tag { get; set; } |
Visual Basic Copy Code |
---|
Public Property Tag As Object |
An instance of any class derived from System.Object.
Any type derived from the Object class can be assigned to this property. If the Tag property is set through the Windows Forms designer, only text can be assigned. A common use for the Tag property is to store data that is closely associated with diagrams and often must be accessed when processing a diagram instance.
If the tag is an instance of a value type, it will be serialized together with the diagram when saving or loading the diagram document. Reference types are serialized if marked with the [Serializable] attribute and implement the ISerializable interface.
NetDiagram Programmer's Guide | © 2023 MindFusion |