Profile Picture

How could I create a custome Shape class

Posted By Hamdy Ghanem 14 Years Ago

How could I create a custome Shape class

Author
Message
Nevron Support
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,437 reputation)Supreme Being (4,437 reputation)Supreme Being (4,437 reputation)Supreme Being (4,437 reputation)Supreme Being (4,437 reputation)Supreme Being (4,437 reputation)Supreme Being (4,437 reputation)Supreme Being (4,437 reputation)Supreme Being (4,437 reputation)

Group: Forum Members
Last Active: Last Month
Posts: 3,055, Visits: 4,055
Hi,

You can set any custom object to the Tag property of the shape. The Tag by itself is not used by the diagram, so this gives you the ability to attach any custom information to any diagram element. There are several requirements that custom tag objects must implement:

1. They need to be marked as [Serializable].
2. They need to implement the ICloneable interface.
3. They need to have a default public constructor.



Best Regards,
Nevron Support Team



Hamdy Ghanem
Posted 14 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)

Group: Forum Members
Last Active: 14 Years Ago
Posts: 7, Visits: 1
I want to add more property for every shape
So I tried to create a cusom class that inherited from Nshape
but I failed because the Nshape has no new construction and is created by factory
How could I implement this functionality




Reading This Topic

1 active, 1 guest, 0 members, 0 anonymous.
No members currently viewing this topic!