# PdfLabel

One printable label in a label-sheet recipe.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfLabelSheetComponent.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Components/PdfLabelSheetComponent.cs#L6)

**Modifiers**

sealed

One printable label in a label-sheet recipe.

## Inheritance

- object
- PdfLabel

## 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 [PdfLabelSheetComponent.PdfLabelSheetComponent](/api/pdf/officeimo-pdf-pdflabelsheetcomponent/#constructor-ctor-collections-generic-ienumerable-officeimo-pdf-pdflabel-int32) parameter `labels`

Filter members 

Show inherited

## Constructors

`public PdfLabel(string text, string? secondaryText = null, string? codeText = null)` [#](#constructor-ctor-string-string-string)

[PdfLabelSheetComponent.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Components/PdfLabelSheetComponent.cs#L6)

Creates a label with primary, secondary, and optional machine-readable text.

Parameters

**text string required**

**secondaryText string? = null optional**

**codeText string? = null 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 Text { get; }` [#](#property-text)

[PdfLabelSheetComponent.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Components/PdfLabelSheetComponent.cs#L14)

Primary label text.

`public string? SecondaryText { get; }` [#](#property-secondarytext)

[PdfLabelSheetComponent.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Components/PdfLabelSheetComponent.cs#L16)

Optional secondary line.

`public string? CodeText { get; }` [#](#property-codetext)

[PdfLabelSheetComponent.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Components/PdfLabelSheetComponent.cs#L18)

Optional searchable code value.

<!-- PowerForge markdown artifact sha256:72B0DA5CD2D6299FE1F272C78414A60780992E979FA44E36C7AE1BB0B5A80148 -->
