Back to Devexpress

PrintingLocalizer.GetString(PrintingStringId) Method

wpf-devexpress-dot-xpf-dot-printing-dot-printinglocalizer-dot-getstring-x28-devexpress-dot-xpf-dot-printing-dot-printingstringid-x29.md

latest2.1 KB
Original Source

PrintingLocalizer.GetString(PrintingStringId) Method

Returns a localized string for the given string identifier.

Namespace : DevExpress.Xpf.Printing

Assembly : DevExpress.Xpf.Printing.v25.2.dll

NuGet Package : DevExpress.Wpf.Printing

Declaration

csharp
public static string GetString(
    PrintingStringId id
)
vb
Public Shared Function GetString(
    id As PrintingStringId
) As String

Parameters

NameTypeDescription
idPrintingStringId

A PrintingStringId enumeration value, identifying the string to localize.

|

Returns

TypeDescription
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

PrintingLocalizer Class

PrintingLocalizer Members

DevExpress.Xpf.Printing Namespace