New to Telerik UI for WinForms? Start a free 30-day trial

Provides access to the active Spreadsheet localization provider and localized error messages.

Definition

Namespace:Telerik.WinForms.Spreadsheet

Assembly:Telerik.WinControls.RadSpreadsheet.dll

Syntax:

C#
public class LocalizationManager

Inheritance: objectLocalizationManager

Constructors

C#
public LocalizationManager()

Properties

Gets or sets the provider used for Spreadsheet localization.

C#
public static SpreadsheetLocalizationProvider CurrentProvider { get; set; }

The getter creates the default resource-backed provider on first access. Setting this property to null causes the default provider to be created again on the next read.

Methods

Gets a message for an exception, resolving and formatting localizable exceptions when possible.

C#
public static string GetMessageString(Exception ex)
Parameters:exException

The exception whose message is requested.

Returns:

string

The formatted provider result for a keyed LocalizableException (which may be the key itself when untranslated); otherwise, the exception's message.

Gets a localized string for the specified resource key.

C#
public static string GetString(string key)
Parameters:keystring

The localization key.

Returns:

string

The localized value, or the key itself when no value is available.