Loads and resolves the XML string table used by Spreadsheet localization.
Definition
Namespace:Telerik.WinForms.Spreadsheet
Assembly:Telerik.WinControls.RadSpreadsheet.dll
Syntax:
public class SpreadsheetLocalizationProvider
Inheritance: objectSpreadsheetLocalizationProvider
Constructors
Creates a provider from the default Spreadsheet string-table resource.
public SpreadsheetLocalizationProvider()
Creates a provider by parsing an XML string table from a stream.
public SpreadsheetLocalizationProvider(Stream input)
The stream containing the XML string table; it remains owned by the caller.
XML parse failures are suppressed. If the document cannot be loaded, lookups fall back to returning their keys.
Properties
Gets or sets the provider currently used by LocalizationManager.
public static SpreadsheetLocalizationProvider CurrentProvider { get; set; }
Methods
Creates a provider from an XML string table stored in a file.
public static SpreadsheetLocalizationProvider FromFile(string path)
The path to the XML localization file.
Returns:SpreadsheetLocalizationProvider
A provider populated from the file.
Creates a provider from an XML string-table resource in the specified assembly.
public static SpreadsheetLocalizationProvider FromResource(string resourceName, Assembly assembly)
The manifest resource name.
assemblyAssemblyThe assembly containing the resource.
Returns:SpreadsheetLocalizationProvider
A provider populated from the resource.
Exceptions: ArgumentExceptionThe resource is not present in assembly.
Creates a provider from an XML string-table resource in the Spreadsheet assembly.
public static SpreadsheetLocalizationProvider FromResource(string resourceName)
The manifest resource name.
Returns:SpreadsheetLocalizationProvider
A provider populated from the resource.
Creates a provider by parsing an XML string table from a stream.
public static SpreadsheetLocalizationProvider FromStream(Stream input)
The stream containing the XML string table.
Returns:SpreadsheetLocalizationProvider
A provider populated from the stream when the XML is valid.
The provider reads but does not dispose the supplied stream.