# PdfTicketComponent

A compact ticket or admission-pass recipe over the normal PDF panel flow.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfTicketComponent.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Components/PdfTicketComponent.cs#L8)

**Implements**

`IPdfComponent`

**Modifiers**

sealed

A compact ticket or admission-pass recipe over the normal PDF panel flow.

## Inheritance

- object
- PdfTicketComponent

Filter members 

Show inherited

## Constructors

`public PdfTicketComponent(string title, string ticketNumber, DateTime? startsAt = null, string? venue = null, string? holder = null, string? instructions = null, CultureInfo? culture = null)` [#](#constructor-ctor-string-string-nullable-system-datetime-string-string-string-globalization-cultureinfo)

[PdfTicketComponent.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Components/PdfTicketComponent.cs#L8)

Creates a ticket recipe.

Parameters

**title string required**

**ticketNumber string required**

**startsAt System.DateTime? = null optional**

**venue string? = null optional**

**holder string? = null optional**

**instructions string? = null optional**

**culture System.Globalization.CultureInfo? = null optional**

## Methods

`public void Compose(PdfContentBuilder content)` [#](#method-compose-officeimo-pdf-pdfcontentbuilder)

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

Composes this component into the supplied document content.

Parameters

**content OfficeIMO.Pdf.PdfContentBuilder required**

## 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 Title { get; }` [#](#property-title)

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

Event or pass title.

`public string TicketNumber { get; }` [#](#property-ticketnumber)

[PdfTicketComponent.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Components/PdfTicketComponent.cs#L30)

Searchable ticket identifier.

`public DateTime? StartsAt { get; }` [#](#property-startsat)

[PdfTicketComponent.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Components/PdfTicketComponent.cs#L32)

Optional start time.

`public string? Venue { get; }` [#](#property-venue)

[PdfTicketComponent.cs:34](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Components/PdfTicketComponent.cs#L34)

Optional venue.

`public string? Holder { get; }` [#](#property-holder)

[PdfTicketComponent.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Components/PdfTicketComponent.cs#L36)

Optional holder name.

`public string? Instructions { get; }` [#](#property-instructions)

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

Optional instructions.

<!-- PowerForge markdown artifact sha256:64DCC4218C1E6FACAB959EC093486129A61D038553CBAFDCDAE242E6C354906C -->
