LocalizationHelperGetString(String, LocalizationContext) Method

Gets a localized string for the specified key using the specified context. It invokes the LocalizationRequested event to retrieve the string resource. If the event is not handled, and a resource set is available for the specified context, it retrieves the string from that resource set.

Definition

Namespace: KGySoft.WinForms
Assembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
C#
public static string? GetString(
	string key,
	LocalizationContext? context
)

Parameters

key  String
The key of the requested string resource.
context  LocalizationContext
The localization context to use for the operation. If , no context is used.

Return Value

String
The localized string for the specified key if found; otherwise, .

See Also