Show: Delphi C++
Display Preferences

#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

Personal tools
RAD Studio 10.2 Tokyo
In other languages
Previous Versions
Assistance