Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hello,

 

I am making a function for a class and I wantone of the parameters of the class to only allow certain selections in the intellisense. Basically what I want is similar to how when a function expects a drawing.color it gives you an intellisense list of all the available colors. What do I need to do to make this happen. I've tried making a custom structure and using that as the type for my parameter but that didn't work. Any ideas?

 

Thanks!!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...