#pragma region and #pragma end_region

From RAD Studio
Jump to: navigation, search

Go Up to Pragma Directives Overview Index

Syntax (See Pseudo-grammar)

#pragma region STR
#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 STR
// ...
// code to be collapsed/expanded
// ...
#pragma end_region

STR is optional.

See Also