# InvoicePdfTheme

Defines the colors and geometry used by the optional modern invoice presentation.

Class 

`OfficeIMO.Invoicing.Pdf`

**Namespace**

`OfficeIMO.Invoicing.Pdf`

**Assembly**

`OfficeIMO.Invoicing.Pdf`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[InvoicePdfTheme.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Invoicing.Pdf/InvoicePdfTheme.cs#L7)

**Modifiers**

sealed

Defines the colors and geometry used by the optional modern invoice presentation.

## Inheritance

- object
- InvoicePdfTheme

## Usage

Explore 2 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 2

- Property [InvoicePdfLayoutOptions.Theme](/api/invoicing-pdf/officeimo-invoicing-pdf-invoicepdflayoutoptions/#property-theme)
- Method [InvoicePdfTheme.Modern](/api/invoicing-pdf/officeimo-invoicing-pdf-invoicepdftheme/#method-modern-officeimo-officecolor)

Filter members 

Show inherited

## Constructors

`public InvoicePdfTheme()` [#](#constructor-ctor)

[InvoicePdfTheme.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Invoicing.Pdf/InvoicePdfTheme.cs#L7)

## Methods

`public static InvoicePdfTheme Modern(OfficeColor accent)` [#](#method-modern-officeimo-officecolor)

[InvoicePdfTheme.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Invoicing.Pdf/InvoicePdfTheme.cs#L35)

Creates a modern theme from one brand accent while retaining accessible neutral colors.

Parameters

**accent OfficeIMO.OfficeColor required**

Returns

`InvoicePdfTheme`

## 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 OfficeColor Accent { get; set; }` [#](#property-accent)

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

Primary accent used for headings, table headers, and highlighted totals.

`public OfficeColor Text { get; set; }` [#](#property-text)

[InvoicePdfTheme.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Invoicing.Pdf/InvoicePdfTheme.cs#L13)

Primary text color.

`public OfficeColor MutedText { get; set; }` [#](#property-mutedtext)

[InvoicePdfTheme.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Invoicing.Pdf/InvoicePdfTheme.cs#L16)

Secondary text color.

`public OfficeColor Surface { get; set; }` [#](#property-surface)

[InvoicePdfTheme.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Invoicing.Pdf/InvoicePdfTheme.cs#L19)

Soft background used for cards and alternating rows.

`public OfficeColor Border { get; set; }` [#](#property-border)

[InvoicePdfTheme.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Invoicing.Pdf/InvoicePdfTheme.cs#L22)

Border and separator color.

`public double CornerRadius { get; set; }` [#](#property-cornerradius)

[InvoicePdfTheme.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Invoicing.Pdf/InvoicePdfTheme.cs#L26)

Corner radius in points for cards and tables.

<!-- PowerForge markdown artifact sha256:1A58EA4576C32CEDDDA194A454FE5A678C3810511742CCDE4E86ED966914EDFF -->
