Skip to main content

PrintingLocalizer.GetString(PrintingStringId) Method

Returns a localized string for the given string identifier.

Namespace: DevExpress.Xpf.Printing

Assembly: DevExpress.Xpf.Printing.v24.1.dll

NuGet Package: DevExpress.Wpf.Printing

Declaration

public static string GetString(
    PrintingStringId id
)

Parameters

Name Type Description
id PrintingStringId

A PrintingStringId enumeration value, identifying the string to localize.

Returns

Type Description
String

A String value, corresponding to the specified identifier.

Remarks

The Document Preview supports localization, so that you can substitute the default strings displayed within context menus with your own equivalents (e.g., in your native language). Items that can be localized are listed in the PrintingStringId enumeration.

To localize the default resources of a Document Preview, override the GetString method in a PrintingLocalizer class descendant.

For more information, refer to Localizing WPF Controls via Localizer Objects.

See Also