Search
Diagram.Tag Property
See Also
 





Gets or sets custom data associated with this diagram.

Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming

 Syntax

C#  Copy Code

public Object Tag { get; set; }

Visual Basic  Copy Code

Public Property Tag As Object

 Property Value

An instance of any class derived from System.Object.

 Remarks

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.

 See Also