Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

InvoicePdfLanguagePack

Namespace OfficeIMO.Invoicing.Pdf
Assembly OfficeIMO.Invoicing.Pdf
Modifiers sealed
Attributes
DefaultMember("Item")

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

Inheritance

  • Object
  • InvoicePdfLanguagePack

Usage

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) #
Returns: InvoicePdfLanguagePack

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

Parameters

cultureName System.String requiredposition: 0
labels System.Collections.Generic.IReadOnlyDictionary{OfficeIMO.Invoicing.Pdf.InvoicePdfText,System.String} requiredposition: 1
public static InvoicePdfLanguagePack ForCulture(String cultureName) #
Returns: InvoicePdfLanguagePack

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 System.String requiredposition: 0
public String GetPaymentDescription(String code) #
Returns: String

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

Parameters

code System.String requiredposition: 0
public String GetUnitDescription(String code) #
Returns: String

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

Parameters

code System.String requiredposition: 0
public InvoicePdfLanguagePack WithCodeDescriptions(IReadOnlyDictionary<String, String> units = null, IReadOnlyDictionary<String, String> payments = null) #
Returns: InvoicePdfLanguagePack

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{System.String,System.String} = null optionalposition: 0
payments System.Collections.Generic.IReadOnlyDictionary{System.String,System.String} = null optionalposition: 1

Properties

public CultureInfo Culture { get; } #

Culture used by this language pack.

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

Returns the localized label for text.

Parameters

arg1 OfficeIMO.Invoicing.Pdf.InvoicePdfText requiredposition: 0