I have a UserControl and I put some public Method开发者_开发技巧s/Properties in there.
I would like to have that when the user of my UserControl types something and Intellisense opens, that he immediately sees my custom methods created in the UserControl, is that possible somehow by marking the methods/props with kind of attributes?
No, this is not something that can be easily done. Visual Studio will sort the methods/properties alphabetically.
To do what you want, you will need to:
- Mark your methods/properties with a custom attribute
- Write this custom attribute
- Use VS automation to reflect over every type to find this attribute
- Reorder the intellisense listing (not sure if this is even possible with VS VBA)
精彩评论