# InvoicePdfLanguagePack

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

Class 

`OfficeIMO.Invoicing.Pdf`

**Namespace**

`OfficeIMO.Invoicing.Pdf`

**Assembly**

`OfficeIMO.Invoicing.Pdf`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[InvoicePdfLanguagePack.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Invoicing.Pdf/InvoicePdfLanguagePack.cs#L29)

**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.

### Returned or exposed by 4

- Method [InvoicePdfLanguagePack.Create](/api/invoicing-pdf/officeimo-invoicing-pdf-invoicepdflanguagepack/#method-create-string-collections-generic-ireadonlydictionary-officeimo-invoicing-pdf-invoicepdftext-system-string)
- Method [InvoicePdfLanguagePack.ForCulture](/api/invoicing-pdf/officeimo-invoicing-pdf-invoicepdflanguagepack/#method-forculture-string)
- Method [InvoicePdfLanguagePack.WithCodeDescriptions](/api/invoicing-pdf/officeimo-invoicing-pdf-invoicepdflanguagepack/#method-withcodedescriptions-collections-generic-ireadonlydictionary-system-string-system-string-collections-generic-ireadonlydictionary-system-string-system-string)
- Property [InvoicePdfLayoutOptions.Languages](/api/invoicing-pdf/officeimo-invoicing-pdf-invoicepdflayoutoptions/#property-languages)

Filter members 

Show inherited

## Methods

`public static InvoicePdfLanguagePack Create(string cultureName, IReadOnlyDictionary<InvoicePdfText, string> labels)` [#](#method-create-string-collections-generic-ireadonlydictionary-officeimo-invoicing-pdf-invoicepdftext-system-string)

[InvoicePdfLanguagePack.cs:51](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Invoicing.Pdf/InvoicePdfLanguagePack.cs#L51)

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**

Returns

`InvoicePdfLanguagePack`

`public static InvoicePdfLanguagePack ForCulture(string cultureName)` [#](#method-forculture-string)

[InvoicePdfLanguagePack.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Invoicing.Pdf/InvoicePdfLanguagePack.cs#L29)

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**

Returns

`InvoicePdfLanguagePack`

`public string? GetPaymentDescription(string code)` [#](#method-getpaymentdescription-string)

[InvoicePdfLanguagePack.Codes.cs:83](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Invoicing.Pdf/InvoicePdfLanguagePack.Codes.cs#L83)

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)` [#](#method-getunitdescription-string)

[InvoicePdfLanguagePack.Codes.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Invoicing.Pdf/InvoicePdfLanguagePack.Codes.cs#L10)

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)` [#](#method-withcodedescriptions-collections-generic-ireadonlydictionary-system-string-system-string-collections-generic-ireadonlydictionary-system-string-system-string)

[InvoicePdfLanguagePack.Codes.cs:93](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Invoicing.Pdf/InvoicePdfLanguagePack.Codes.cs#L93)

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**

Returns

`InvoicePdfLanguagePack`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public CultureInfo Culture { get; }` [#](#property-culture)

[InvoicePdfLanguagePack.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Invoicing.Pdf/InvoicePdfLanguagePack.cs#L18)

Culture used by this language pack.

`public string this[InvoicePdfText text] { get; }` [#](#property-item-officeimo-invoicing-pdf-invoicepdftext)

[InvoicePdfLanguagePack.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Invoicing.Pdf/InvoicePdfLanguagePack.cs#L21)

Returns the localized label for text.

Parameters

**text OfficeIMO.Invoicing.Pdf.InvoicePdfText required**

<!-- PowerForge markdown artifact sha256:AFFB0BB2DB0EDD96BACEF9327DD1902638C632859F08AA80F64DDC5BF7BA5256 -->
