E
Edward Diener
In C++ Builder one could set up a collection of items, by deriving a
collection from TCollection and a collection item from TCollectionItem and
tieing the two together in the derived code, which a user could edit at
design time. This collection had immediate support in C++ Builder's RAD
designer without the programmer having to build any sort of design time
capabilities into his code. It allowed the user to visually add and remove
collection items from a collection as well as set the properties and/or
events for each element in the collection. The collection itself would be a
property of a component and the collection editor would automatically be
applied to that property. Essentially C++ Builder had a built-in design time
collection editor which, needless to say, persisted the collection
information as a propery.
I want to do the same thing in .NET and have a collection, as a property,
which the .NET component designer will allow the end-user to manipulate at
design time by adding and removing items and setting properties and events
on each item. Is there such a facility in the .NET framework ? Is this
facility supported by the typical .NET component designer, such as the ones
in Visual Studio .NET ? If so, what are the steps, or where is the
documentation for creating such a collection of items ?
collection from TCollection and a collection item from TCollectionItem and
tieing the two together in the derived code, which a user could edit at
design time. This collection had immediate support in C++ Builder's RAD
designer without the programmer having to build any sort of design time
capabilities into his code. It allowed the user to visually add and remove
collection items from a collection as well as set the properties and/or
events for each element in the collection. The collection itself would be a
property of a component and the collection editor would automatically be
applied to that property. Essentially C++ Builder had a built-in design time
collection editor which, needless to say, persisted the collection
information as a propery.
I want to do the same thing in .NET and have a collection, as a property,
which the .NET component designer will allow the end-user to manipulate at
design time by adding and removing items and setting properties and events
on each item. Is there such a facility in the .NET framework ? Is this
facility supported by the typical .NET component designer, such as the ones
in Visual Studio .NET ? If so, what are the steps, or where is the
documentation for creating such a collection of items ?