RAD Studio
ContentsIndex
PreviousUpNext
#pragma region and #pragma end_region

Syntax

#pragma region <name> #pragma end_region

Description  

These two pragmas allow the program to specify a region that can be collapsed and expanded, similar to the facility automatically provided for functions. 

Use these pragmas by enclosing the code section as follows:

#pragma region name code to be collapsed/expanded ... #pragma
        end_region

The name is optional.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!