PS
Prakash S
Syncfusion Team
November 10, 2005 04:04 PM UTC
Hi Chris,
You can selectively expose the properties of an object by using a TypeDescriptor for the class. The use of a TypeDescriptor to filter out the properties of an Essential Diagram Symbol is demonstrated in the QuickStart\CustomSymbol sample that ships with the product. Please refer to the MySymbol.cs file in that sample to view the symbol''s TypeDescriptor.
In your case, you can simply hide the collection property from the PropertyEditor by using an ''EditorBrowsableAttribute'' with the ''EditorBrowsableState.Never'' state on the particular property. You can then use the class TypeDescriptor''s GetProperties() override to iterate through the particular collection property and expose the collection properties as top-level properties of the type.
Thanks,
Prakash Surendra
Syncfusion Inc.,