Locale

Overview

Class that can hold locale info for converting integers/floats/dates to and from string.

Location

  • Reference:
    • Elements.dll  .NET, .NET Core 6.0, .NET Standard 2.0
    • elements.jar  Cooper
    • Elements.fx  Island, ToffeeV2
    • libElements.fx  Toffee
  • Namespace: RemObjects.Elements.RTL
  • Platforms: .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, Toffee, ToffeeV2

 

constructor

Create a locale by name.

 

constructor(aLocale: String)

 

Locale(String aLocale)

 

init(_ aLocale: String)

 

Locale(String aLocale)

 

Sub New(aLocale As String)

Parameters:

  • aLocale:

Current

Returns the current/default locale.

 

class property Current: Locale read;

 

class Locale Current { get; }

 

static var Current: Locale { get{} }

 

class Locale Current { __get; }

 

Shared ReadOnly Property Current() As Locale

DateTimeFormat

Returns the datetime format for this locale.

 

property DateTimeFormat: DateTimeFormatInfo read;

 

DateTimeFormatInfo DateTimeFormat { get; }

 

var DateTimeFormat: DateTimeFormatInfo { get{} }

 

DateTimeFormatInfo DateTimeFormat { __get; }

 

ReadOnly Property DateTimeFormat() As DateTimeFormatInfo

Identifier

name of this locale.

 

property Identifier: not nullable String read;

 

String! Identifier { get; }

 

var Identifier: String { get{} }

 

String Identifier { __get; }

 

ReadOnly Property Identifier() As String

Invariant

Returns the invariant locale.

 

class property Invariant: Locale read;

 

class Locale Invariant { get; }

 

static var Invariant: Locale { get{} }

 

class Locale Invariant { __get; }

 

Shared ReadOnly Property Invariant() As Locale

NumberFormat

Number format data.

 

property NumberFormat: NumberFormatInfo read;

 

NumberFormatInfo NumberFormat { get; }

 

var NumberFormat: NumberFormatInfo { get{} }

 

NumberFormatInfo NumberFormat { __get; }

 

ReadOnly Property NumberFormat() As NumberFormatInfo

PlatformLocale

Gets the underlying object for this platform.

 

// .NET, .NET Core 6.0, .NET Standard 2.0
property PlatformLocale: CultureInfo read;
// Island
property PlatformLocale: Locale read;

 

// .NET, .NET Core 6.0, .NET Standard 2.0
CultureInfo PlatformLocale { get; }
// Island
Locale PlatformLocale { get; }

 

// .NET, .NET Core 6.0, .NET Standard 2.0
var PlatformLocale: CultureInfo { get{} }
// Island
var PlatformLocale: Locale { get{} }
// Toffee, ToffeeV2
var PlatformLocale: NSLocale { get{} }

 

Locale PlatformLocale { __get; }

 

// .NET, .NET Core 6.0, .NET Standard 2.0
ReadOnly Property PlatformLocale() As CultureInfo
// Island
ReadOnly Property PlatformLocale() As Locale

 

DateTimeFormat

Returns the datetime format for this locale.

 

property DateTimeFormat: DateTimeFormatInfo read;

 

DateTimeFormatInfo DateTimeFormat { get; }

 

var DateTimeFormat: DateTimeFormatInfo { get{} }

 

DateTimeFormatInfo DateTimeFormat { __get; }

 

ReadOnly Property DateTimeFormat() As DateTimeFormatInfo

Identifier

name of this locale.

 

property Identifier: not nullable String read;

 

String! Identifier { get; }

 

var Identifier: String { get{} }

 

String Identifier { __get; }

 

ReadOnly Property Identifier() As String

NumberFormat

Number format data.

 

property NumberFormat: NumberFormatInfo read;

 

NumberFormatInfo NumberFormat { get; }

 

var NumberFormat: NumberFormatInfo { get{} }

 

NumberFormatInfo NumberFormat { __get; }

 

ReadOnly Property NumberFormat() As NumberFormatInfo

PlatformLocale

Gets the underlying object for this platform.

 

// .NET, .NET Core 6.0, .NET Standard 2.0
property PlatformLocale: CultureInfo read;
// Island
property PlatformLocale: Locale read;

 

// .NET, .NET Core 6.0, .NET Standard 2.0
CultureInfo PlatformLocale { get; }
// Island
Locale PlatformLocale { get; }

 

// .NET, .NET Core 6.0, .NET Standard 2.0
var PlatformLocale: CultureInfo { get{} }
// Island
var PlatformLocale: Locale { get{} }
// Toffee, ToffeeV2
var PlatformLocale: NSLocale { get{} }

 

Locale PlatformLocale { __get; }

 

// .NET, .NET Core 6.0, .NET Standard 2.0
ReadOnly Property PlatformLocale() As CultureInfo
// Island
ReadOnly Property PlatformLocale() As Locale

Current

Returns the current/default locale.

 

class property Current: Locale read;

 

class Locale Current { get; }

 

static var Current: Locale { get{} }

 

class Locale Current { __get; }

 

Shared ReadOnly Property Current() As Locale

Invariant

Returns the invariant locale.

 

class property Invariant: Locale read;

 

class Locale Invariant { get; }

 

static var Invariant: Locale { get{} }

 

class Locale Invariant { __get; }

 

Shared ReadOnly Property Invariant() As Locale

 

constructor

Create a locale by name.

 

constructor(aLocale: String)

 

Locale(String aLocale)

 

init(_ aLocale: String)

 

Locale(String aLocale)

 

Sub New(aLocale As String)

Parameters:

  • aLocale: