# PdfTableCellViewport

Describes the visible portion of a larger table cell.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`56dd0d38e0b5` with working tree changes

**Source**

[PdfTableCellViewport.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Pdf/Model/PdfTableCellViewport.cs#L16)

**Modifiers**

sealed

Describes the visible portion of a larger table cell. The renderer lays out text, images, diagonal borders, data bars and icons in the full box and clips them to the containing cell, preserving wrapping and alignment across page fragments. Check boxes and form fields require separate placement.

## Inheritance

- object
- PdfTableCellViewport

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

- Property [PdfTableCell.Viewport](/api/pdf/officeimo-pdf-pdftablecell/#property-viewport)

### Accepted by parameters 1

- Method [PdfTableCell.WithViewport](/api/pdf/officeimo-pdf-pdftablecell/#method-withviewport-officeimo-pdf-pdftablecellviewport) parameter `viewport`

Filter members 

Show inherited

## Constructors

`public PdfTableCellViewport(OfficeLength contentWidth, OfficeLength contentHeight, OfficeLength width, OfficeLength height, OfficeLength offsetX = default, OfficeLength offsetY = default)` [#](#constructor-ctor-officeimo-officelength-officeimo-officelength-officeimo-officelength-officeimo-officelength-officeimo-officelength-officeimo-officelength)

[PdfTableCellViewport.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Pdf/Model/PdfTableCellViewport.cs#L16)

Creates a viewport in one consistent coordinate system. Width and height are the visible fragment's dimensions; content dimensions describe the unsplit cell, and offsets locate the fragment from that cell's top-left corner. The viewport scales with the rendered cell's width and height.

Parameters

**contentWidth OfficeIMO.OfficeLength required**

**contentHeight OfficeIMO.OfficeLength required**

**width OfficeIMO.OfficeLength required**

**height OfficeIMO.OfficeLength required**

**offsetX OfficeIMO.OfficeLength = default optional**

**offsetY OfficeIMO.OfficeLength = default 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 OfficeLength ContentWidth { get; }` [#](#property-contentwidth)

[PdfTableCellViewport.cs:40](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Pdf/Model/PdfTableCellViewport.cs#L40)

Width of the full content box before clipping.

`public OfficeLength ContentHeight { get; }` [#](#property-contentheight)

[PdfTableCellViewport.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Pdf/Model/PdfTableCellViewport.cs#L42)

Height of the full content box before clipping.

`public OfficeLength Width { get; }` [#](#property-width)

[PdfTableCellViewport.cs:44](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Pdf/Model/PdfTableCellViewport.cs#L44)

Width of the visible fragment.

`public OfficeLength Height { get; }` [#](#property-height)

[PdfTableCellViewport.cs:46](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Pdf/Model/PdfTableCellViewport.cs#L46)

Height of the visible fragment.

`public OfficeLength OffsetX { get; }` [#](#property-offsetx)

[PdfTableCellViewport.cs:48](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Pdf/Model/PdfTableCellViewport.cs#L48)

Horizontal offset of the fragment within the full content box.

`public OfficeLength OffsetY { get; }` [#](#property-offsety)

[PdfTableCellViewport.cs:50](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Pdf/Model/PdfTableCellViewport.cs#L50)

Vertical offset of the fragment within the full content box.

<!-- PowerForge markdown artifact sha256:8B1219C662BE58D0DB236388A28594D1CDD3BD051B149CEBCA1FE487CC7EBCDD -->
