Manages texts for all EasyQuery WinControls visual objects
public static class Korzh.EasyQuery.Wpf.TextResources
Package: Korzh.EasyQuery.Wpf
(targets: net461
, net5.0-windows7.0
, netcoreapp3.1
)
Assembly: Korzh.EasyQuery.WPF.dll
Static Methods
Name | Type | Description |
---|---|---|
Get(string code) |
string |
Gets a resource string by its code. |
GetTexts(string storageID = null) |
TextStorage | Gets current Korzh.Utils.TextStorage object that contains textual resources for this assembly. |
LoadFromFile(string path, TextStorage storage = null) |
void |
Loads the resources from .properties file into the default TextStorage object |
LoadFromFileForCulture(string baseFileName, CultureInfo cultureInfo = null, string fileExt = properties) |
void |
Loads the resources from .properties file into the default TextStorage object. The name of the .properties file is based on the culture for current thread. |
LoadFromResources(ResourceManager resManager) |
void |
Loads texts from resources into the default TextStorage. |
LoadFromStream(Stream stream) |
void |
Loads resources from a stream into the default TextStorage object |
Put(string code, string value) |
void |
Sets the value of resource string by its code. |
ReloadNativeResources(string storageId = null) |
void |
Reloads the resources for specified storage ID. If the ID is not indicated - load the resource for default TextStorage object |