LocalizationHelperGetString(String, LocalizationContext, Object) Method

Gets a localized string for the specified key using the specified context and formatting arguments. It invokes the LocalizationRequested event to retrieve the string resource format. 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,
	params Object?[]? args
)

Parameters

key  String
The key of the requested string resource. When args has values, the key is expected to be a format string.
context  LocalizationContext
The localization context to use for the operation. If , no context is used.
args  Object
The formatting arguments to be applied to the localized string format.

Return Value

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

See Also