EnglishName Property

RegionInfo.EnglishName Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets the full name of the country/region in English.

Namespace:  System.Globalization
Assembly:  mscorlib (in mscorlib.dll)

public virtual string EnglishName { get; }

Property Value

Type: System.String
The full name of the country/region in English.

For example, a RegionInfo object created for the English (United States) culture displays "United States".

The following code example displays the properties of the RegionInfo class.


using System;
using System.Globalization;

public class Example
{
   public static void Demo(System.Windows.Controls.TextBlock outputBlock)
   {
      // Displays the property values of the RegionInfo for "US".
      RegionInfo myRI1 = new RegionInfo("en-US");
      outputBlock.Text += String.Format("   Name:                         {0}\n", myRI1.Name);
      outputBlock.Text += String.Format("   DisplayName:                  {0}\n", myRI1.DisplayName);
      outputBlock.Text += String.Format("   EnglishName:                  {0}\n", myRI1.EnglishName);
      outputBlock.Text += String.Format("   IsMetric:                     {0}\n", myRI1.IsMetric);
      outputBlock.Text += String.Format("   TwoLetterISORegionName:       {0}\n", myRI1.TwoLetterISORegionName);
      outputBlock.Text += String.Format("   CurrencySymbol:               {0}\n", myRI1.CurrencySymbol);
      outputBlock.Text += String.Format("   ISOCurrencySymbol:            {0}\n", myRI1.ISOCurrencySymbol);
   }
}
/*
This code produces the following output.
   Name:                         US
   DisplayName:                  United States
   EnglishName:                  United States
   IsMetric:                     False
   TwoLetterISORegionName:       US
   CurrencySymbol:               $
   ISOCurrencySymbol:            USD
*/


Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft