|
-
Dec 7th, 2010, 05:16 AM
#5
Re: Is it possible to rename hidden selection in vb.net?
The Region stuff is just a useful way to group blocks of code into collapsible sections (or regions). You cannot group a block of code inside a method or property. I don't know why this is, I don't see any real reason why this couldn't be possible except it being more work for the developers of the IDE perhaps.
Anyway, if your methods are so large that you want to use a region block inside them, then you should really consider refactoring: break those large methods up into smaller methods, and you probably won't even need the region blocks as the code will be grouped into smaller methods anyway.
As for the 'html code' you've shown us, that is quite unrelated to the region blocks. They are called XML Comments and are used to generate the Intellisense. For example, if I were to type "_font" in your code somewhere, Intellisense would pop up with the description: "Property variable for the Font the user wishes to use".
Furthermore, there are tools available (SandCastle, NDoc, etc) that can use these XML comments to automatically generate a help file or documentation in the style of MSDN. Very useful indeed.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|