Loads RichTextBox localization strings from the built-in resource, a file, a resource, or a stream.
Definition
Namespace:Telerik.WinForms.RichTextEditor
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class RichTextBoxLocalizationProvider
Inheritance: objectRichTextBoxLocalizationProvider
Constructors
Creates a provider initialized with the RichTextBox localization strings embedded in this assembly.
public RichTextBoxLocalizationProvider()
Creates a provider from localization XML in a stream. Entries are read from children of the
root element that have a name attribute and a value child. Malformed XML,
a missing root, a missing name attribute, or a duplicate key leaves the provider without
loaded strings.
public RichTextBoxLocalizationProvider(Stream input)
The stream containing the localization XML; the stream is not disposed.
Properties
Gets or sets the same shared provider exposed by CurrentProvider.
public static RichTextBoxLocalizationProvider CurrentProvider { get; set; }
Methods
Creates a provider from a localization XML file.
public static RichTextBoxLocalizationProvider FromFile(string path)
The path to the XML localization file.
Returns:RichTextBoxLocalizationProvider
A provider initialized from the file contents.
Creates a provider from a manifest resource in the specified assembly.
public static RichTextBoxLocalizationProvider FromResource(string resourceName, Assembly assembly)
The fully qualified manifest resource name.
assemblyAssemblyThe assembly containing the resource.
Returns:RichTextBoxLocalizationProvider
A provider initialized from the resource contents.
Exceptions: ArgumentExceptionThe resource does not exist in assembly.
Creates a provider from a manifest resource in the executing assembly.
public static RichTextBoxLocalizationProvider FromResource(string resourceName)
The fully qualified manifest resource name.
Returns:RichTextBoxLocalizationProvider
A provider initialized from the resource contents.
Creates a provider by loading localization XML from a stream. The stream remains owned by the caller.
public static RichTextBoxLocalizationProvider FromStream(Stream input)
The stream containing the localization XML.
Returns:RichTextBoxLocalizationProvider
A provider initialized from the stream contents.