# PdfInvoiceLine

One quantity/price line in the invoice recipe.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfInvoiceComponent.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Components/PdfInvoiceComponent.cs#L24)

**Modifiers**

sealed

One quantity/price line in the invoice recipe.

## Inheritance

- object
- PdfInvoiceLine

## Usage

Explore 1 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.

### Accepted by parameters 1

- Constructor [PdfInvoiceComponent.PdfInvoiceComponent](/api/pdf/officeimo-pdf-pdfinvoicecomponent/#constructor-ctor-string-datetime-officeimo-pdf-pdfinvoiceparty-officeimo-pdf-pdfinvoiceparty-collections-generic-ienumerable-officeimo-pdf-pdfinvoiceline-string-globalization-cultureinfo-nullable-system-datetime) parameter `lines`

Filter members 

Show inherited

## Constructors

`public PdfInvoiceLine(string description, decimal quantity, decimal unitPrice, decimal taxRate = 0)` [#](#constructor-ctor-string-decimal-decimal-decimal)

[PdfInvoiceComponent.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Components/PdfInvoiceComponent.cs#L24)

Creates an invoice line.

Parameters

**description string required**

**quantity decimal required**

**unitPrice decimal required**

**taxRate decimal = 0 optional**

## 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 string Description { get; }` [#](#property-description)

[PdfInvoiceComponent.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Components/PdfInvoiceComponent.cs#L38)

Line description.

`public decimal Quantity { get; }` [#](#property-quantity)

[PdfInvoiceComponent.cs:40](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Components/PdfInvoiceComponent.cs#L40)

Quantity.

`public decimal UnitPrice { get; }` [#](#property-unitprice)

[PdfInvoiceComponent.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Components/PdfInvoiceComponent.cs#L42)

Unit price before tax.

`public decimal TaxRate { get; }` [#](#property-taxrate)

[PdfInvoiceComponent.cs:44](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Components/PdfInvoiceComponent.cs#L44)

Tax rate expressed as a fraction, for example 0.23.

`public decimal Subtotal { get; }` [#](#property-subtotal)

[PdfInvoiceComponent.cs:46](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Components/PdfInvoiceComponent.cs#L46)

Line subtotal before tax.

`public decimal Tax { get; }` [#](#property-tax)

[PdfInvoiceComponent.cs:48](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Components/PdfInvoiceComponent.cs#L48)

Line tax amount.

`public decimal Total { get; }` [#](#property-total)

[PdfInvoiceComponent.cs:50](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Components/PdfInvoiceComponent.cs#L50)

Line total including tax.

<!-- PowerForge markdown artifact sha256:76251D54F0E9514D96FE54FC3B6EAC3158DD136CBA5059E2BF9976012C68358F -->
