# PdfKeyValueRow

Represents one label/value row for generated document metadata, invoice facts, definition lists, and similar two-column PDF layouts.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfKeyValueRow.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfKeyValueRow.cs#L9)

**Modifiers**

sealed

Represents one label/value row for generated document metadata, invoice facts, definition lists, and similar two-column PDF layouts.

## Inheritance

- object
- PdfKeyValueRow

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

- Method [PdfKeyValueRow.Rich](/api/pdf/officeimo-pdf-pdfkeyvaluerow/#method-rich-collections-generic-ienumerable-officeimo-pdf-pdftextrun-collections-generic-ienumerable-officeimo-pdf-pdftextrun)
- Method [PdfKeyValueRow.Text](/api/pdf/officeimo-pdf-pdfkeyvaluerow/#method-text-string-string)

### Accepted by parameters 2

- Method [PdfContentBuilder.AddKeyValueTable](/api/pdf/officeimo-pdf-pdfcontentbuilder/#method-addkeyvaluetable-collections-generic-ienumerable-officeimo-pdf-pdfkeyvaluerow-officeimo-officealignment-officeimo-pdf-pdftablestyle-boolean-string-string) parameter `rows`
- Method [PdfDocument.AddKeyValueTable](/api/pdf/officeimo-pdf-pdfdocument/#method-addkeyvaluetable-collections-generic-ienumerable-officeimo-pdf-pdfkeyvaluerow-officeimo-officealignment-officeimo-pdf-pdftablestyle-boolean-string-string) parameter `rows`

Filter members 

Show inherited

## Constructors

PdfKeyValueRow 2 overloads

`public PdfKeyValueRow(string? key, string? value)` [#](#constructor-ctor-string-string)

[PdfKeyValueRow.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfKeyValueRow.cs#L9)

Creates a plain text label/value row.

Parameters

**key string? required**

**value string? required**

`public PdfKeyValueRow(IEnumerable<PdfTextRun> keyRuns, IEnumerable<PdfTextRun> valueRuns)` [#](#constructor-ctor-collections-generic-ienumerable-officeimo-pdf-pdftextrun-collections-generic-ienumerable-officeimo-pdf-pdftextrun)

[PdfKeyValueRow.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfKeyValueRow.cs#L13)

Creates a rich text label/value row.

Parameters

**keyRuns System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTextRun> required**

**valueRuns System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTextRun> required**

## Methods

`public static PdfKeyValueRow Rich(IEnumerable<PdfTextRun> keyRuns, IEnumerable<PdfTextRun> valueRuns)` [#](#method-rich-collections-generic-ienumerable-officeimo-pdf-pdftextrun-collections-generic-ienumerable-officeimo-pdf-pdftextrun)

[PdfKeyValueRow.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfKeyValueRow.cs#L28)

Creates a rich text label/value row.

Parameters

**keyRuns System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTextRun> required**

**valueRuns System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTextRun> required**

Returns

`PdfKeyValueRow`

`public static PdfKeyValueRow Text(string? key, string? value)` [#](#method-text-string-string)

[PdfKeyValueRow.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfKeyValueRow.cs#L25)

Creates a plain text label/value row.

Parameters

**key string? required**

**value string? required**

Returns

`PdfKeyValueRow`

## 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 IReadOnlyList<PdfTextRun> KeyRuns { get; }` [#](#property-keyruns)

[PdfKeyValueRow.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfKeyValueRow.cs#L19)

Rich text runs used by the label cell.

`public IReadOnlyList<PdfTextRun> ValueRuns { get; }` [#](#property-valueruns)

[PdfKeyValueRow.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfKeyValueRow.cs#L22)

Rich text runs used by the value cell.

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