Initializes a new Region instance based on the region associated with the specified culture identifier.
$(ANCHOR Region_ctor_name) Initializes a new Region instance based on the region specified by name.
Returns a string containing the ISO 3166 code, or the name, of the current Region.
Property. Retrieves the name in English of the currency used in the region.
Property. Retrieves the name in the native language of the region of the currency used in the region.
Property. Retrieves the currency symbol of the region.
Property. Retrieves the Region used by the current Culture.
Property. Retrieves the full name of the region in English.
Property. Retrieves a unique identifier for the geographical location of the region.
Property. Retrieves a value indicating whether the region uses the metric system for measurements.
Property. Retrieves the three-character currency symbol of the region.
$(ANCHOR Region_name) Property. Retrieves the ISO 3166 code, or the name, of the current Region.
Property. Retrieves the full name of the region in its native language.
Property. Retrieves the three-letter ISO 3166 code of the region.
Property. Retrieves the two-letter ISO 3166 code of the region.
The following example displays some of the properties of the Region class:
import tango.io.Print, tango.text.locale.Common; void main() { Region region = new Region("en-GB"); Println("name: %s", region.name); Println("englishName: %s", region.englishName); Println("isMetric: %s", region.isMetric); Println("currencySymbol: %s", region.currencySymbol); Println("isoCurrencySymbol: %s", region.isoCurrencySymbol); } // Produces the following output. // name: en-GB // englishName: United Kingdom // isMetric: true // currencySymbol: £ // isoCurrencySymbol: GBP
$(ANCHOR _Region) Provides information about a region. Remarks: Region does not represent user preferences. It does not depend on the user's language or culture.