Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PrintingLocalizer.GetString(PrintingStringId) Method

Returns a localized string for the given string identifier.

Namespace: DevExpress.Xpf.Printing

Assembly: DevExpress.Xpf.Printing.v24.2.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