API Reference
Class
CountryCentroids
Country centroid lookup table (ISO2 -> lat/lon) backed by an embedded dataset. Uses Natural Earth public domain label points for reliable country-level markers.
Inheritance
- Object
- CountryCentroids
Methods
TryGet 2 overloads
public static Boolean TryGet(Country country, out GeoCoordinate coordinate) #Returns:
BooleanTry to get a centroid by ISO2 code.
Parameters
- iso2 System.String
- coordinate HtmlForgeX.CountryCentroids.GeoCoordinate@
public static Boolean TryGetName(String iso2, out String name) #Returns:
BooleanTry to get the English display name by ISO2 code.
Parameters
- iso2 System.String
- name System.String@