Composite properties to my control

  • Thread starter Thread starter Sehboo
  • Start date Start date
S

Sehboo

Hi,

Can anybody tell me how I can add composite properties to my control -
just like Font property where you see a small '+' sign and user can
click on it to open and see all the properties related to font like
font name, font size, etc.

Thanks
 
There's nothing special about the property. It's just that the property
returns a type with multiple properties within it.
 
There's nothing special about the property. It's just that the property
returns a type with multiple properties within it.

Regards
Senthil
 
But the question is how does a property return multiple properties? I
tried to return a class or a structure but then my property is read-only
in the control, and user is unable to add anything to that property.
 
A B said:
But the question is how does a property return multiple properties? I
tried to return a class or a structure but then my property is read-only
in the control, and user is unable to add anything to that property.

Well, you do return a class. You'll have to instantiate the class in the
constructor for the control, and store it in the ViewState.

HTH,
Mythran
 
And be sure to set the ExpandableObjectAttribute to the property.

-Atul, Sky Software http://www.ssware.com
Shell MegaPack ActiveX & .Net
Drop In Windows Explorer like Shell Browsing GUI controls for your app.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top