CJLeit Posted October 13, 2006 Posted October 13, 2006 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!! Quote
Gill Bates Posted October 13, 2006 Posted October 13, 2006 Make an enumeration:public enum MyEnum { A, B, C } Quote
CJLeit Posted October 13, 2006 Author Posted October 13, 2006 Thanks, that's exactly what I needed! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.