შენიშვნა
ამ გვერდზე წვდომა მოითხოვს ავტორიზაციას. შეგიძლიათ სცადოთ შესვლა ან შეცვალოთ დირექტორიები.
ამ გვერდზე წვდომა მოითხოვს ავტორიზაციას. შეგიძლიათ სცადოთ დირექტორიების შეცვლა.
Collapses and hides sections of code in Visual Basic files.
Syntax
#Region string_literal
' 0 or more statements
#End Region
Parts
| Term | Definition |
|---|---|
#Region |
Required. Specify the start of a region. |
string_literal |
Required. String (enclosed between double quotes) that acts as the title of a region when it is collapsed. Regions are collapsed by default. |
#End Region |
Required. Terminates the #Region block. |
Remarks
Use the #Region directive to specify a block of code to expand or collapse when using the outlining feature of Visual Studio IDE. You can place, or nest, regions within other regions to group similar regions together.
Example
This example uses the #Region directive.
#Region "MathFunctions"
' Insert code for the Math functions here.
#End Region
See also
ითანამშრომლეთ ჩვენთან GitHub-ზე
ამ შინაარსის წყარო შეგიძლიათ იხილოთ GitHub-ზე, სადაც ასევე შეგიძლიათ შექმნათ და გადახედოთ საკითხებს და გაიყვანოთ მოთხოვნები. დამატებითი ინფორმაციისთვის იხილეთ ჩვენი კონტრიბუტორთა სახელმძღვანელო.