From Appmethod Topics
Jump to: navigation, search

Go Up to Object Pascal Compiler Directives (List) Index




{$REGION '<region description>'} and {$ENDREGION} [Object Pascal]

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 Object Pascal:

{$region 'Optional text that appears when the code block is folded'}
// code that can be hidden by folding

See Also