Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

InvoicePdfLanguagePack

OfficeIMO.Invoicing.Pdf

Namespace
OfficeIMO.Invoicing.Pdf
Assembly
OfficeIMO.Invoicing.Pdf
Source revision
ba882f6b0d07 with working tree changes
Modifiers
sealed
Attributes
DefaultMember("Item")

Defines the culture and generated labels for one invoice presentation language.

Inheritance

  • object
  • InvoicePdfLanguagePack

Usage

Explore 4 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Methods

public static InvoicePdfLanguagePack Create(string cultureName, IReadOnlyDictionary<InvoicePdfText, string> labels) #

Creates a custom pack. Missing entries deliberately fall back to English so callers can override only the labels they own.

Parameters

cultureName string required
labels System.Collections.Generic.IReadOnlyDictionary<OfficeIMO.Invoicing.Pdf.InvoicePdfText, string> required
public static InvoicePdfLanguagePack ForCulture(string cultureName) #

Creates a pack for a supported built-in language. English, German, Polish, French, Spanish, Italian, Dutch, Portuguese, Czech, and Slovak are supported; regional culture names use the matching language translation.

Parameters

cultureName string required
public string? GetPaymentDescription(string code) #

Returns the translated description of a supported UNCL 4461 payment code, or null when unknown.

Parameters

code string required

Returns

string?
public string? GetUnitDescription(string code) #

Returns the translated description of a supported UN/ECE unit code, or null when unknown.

Parameters

code string required

Returns

string?
public InvoicePdfLanguagePack WithCodeDescriptions(IReadOnlyDictionary<string, string>? units = null, IReadOnlyDictionary<string, string>? payments = null) #

Creates an independent pack with caller-supplied code descriptions overriding built-in descriptions. Each dictionary accepts up to 512 entries, with codes up to 32 and descriptions up to 256 characters.

Parameters

units System.Collections.Generic.IReadOnlyDictionary<string, string>? = null optional
payments System.Collections.Generic.IReadOnlyDictionary<string, string>? = null optional

Properties

public CultureInfo Culture { get; } #

Culture used by this language pack.

public string this[InvoicePdfText text] { get; } #

Returns the localized label for text.

Parameters

text OfficeIMO.Invoicing.Pdf.InvoicePdfText required