Region...End Region Directive


#Region...#End Region Directive

Syntax

     #Region "identifierString"     ...code goes here     #End Region 


identifierString (required)

The title of the code block

Description

The #Region...#End Region directive marks a block of code as an expandable and collapsible region in the Visual Studio editor.

Usage at a Glance

  • Code blocks delineated with the #Region...#End Region directive are collapsed by default.

  • identifierString identifies the region when it is collapsed.

  • Multiline directives (such as #If) cannot be split across a #Region or #End Region boundary.




Visual Basic 2005(c) In a Nutshell
Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
ISBN: 059610152X
EAN: 2147483647
Year: 2004
Pages: 712

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net