.REGION-.ENDREGION

Specify a collapsible block of code

WTSupported in traditional Synergy on Windows
WNSupported in Synergy .NET on Windows
USupported on UNIX
VSupported on OpenVMS
.REGION name
    .
    .
    .
.ENDREGION

Arguments

name

The name of the region.

Discussion

The .REGION-.ENDREGION directives enable you to hide code from view by delineating a block of code that Visual Studio .NET or Workbench will collapse and mark with a small box containing a plus sign. The classes, fields, groups, etc., defined within that region are not visible until you click on the box to expand it. When the region is expanded, a minus sign is displayed in the box.

Examples

In the example below, the region My Region will be collapsed so that the class fred is hidden until you click on the plus sign to expand it. The region Record Fields will also be collapsed, with the fields and groups defined within records in that region hidden until you click the plus sign.

namespace ns
.region "My Region"
    public class fred
        .         ; Class fields/methods
        . 
        .
    endclass
.endregion
endnamespace
main
record myrecord
.region "Record Fields"
    .             ; Fields/groups within records
    .
    .
.endregion
proc
nop
end