Gets or sets a user-defined data associated with the anchor point.
Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf
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. The default is null (Nothing in Visual Basic).
This property holds data that you define. Diagramming for WPF does not use it in any way. You might associate with the anchor point any value of primitive data types. The tag also might be a complex object from the .NET class library or a class defined by you. If the tag is an instance of value type it will be serialized together with the object containing it when saving / loading a diagram. Reference types are serialized if marked with the [Serializable] attribute or if they implement the ISerializable interface.