Regions
Go Up to Delphi Compiler Directives (List) Index
| 
 Type  | 
 Parameter  | 
| 
 Syntax  | 
 {$REGION '<region description>'} and {$ENDREGION}  | 
The region and endregion directives control the display of collapsible regions in the Code Editor. These directives have no effect on compilation.
To mark code as a region, surround it with the region and endregion directives. You may include a message that will be displayed when the code is folded and hidden.
The following code shows the use of a region in Delphi:
{$region 'Optional text that appears when the code block is folded'}
// code that can be hidden by folding
{$endregion}