Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

PdfTableCellViewport

Namespace OfficeIMO.Pdf
Assembly OfficeIMO.Pdf
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

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by

Accepted by parameters

Constructors

public PdfTableCellViewport(Double contentWidth, Double contentHeight, Double width, Double height, Double offsetX = 0, Double offsetY = 0) #

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 System.Double requiredposition: 0
contentHeight System.Double requiredposition: 1
width System.Double requiredposition: 2
height System.Double requiredposition: 3
offsetX System.Double = 0 optionalposition: 4
offsetY System.Double = 0 optionalposition: 5

Properties

public Double ContentWidth { get; } #

Width of the full content box before clipping.

public Double ContentHeight { get; } #

Height of the full content box before clipping.

public Double Width { get; } #

Width of the visible fragment.

public Double Height { get; } #

Height of the visible fragment.

public Double OffsetX { get; } #

Horizontal offset of the fragment within the full content box.

public Double OffsetY { get; } #

Vertical offset of the fragment within the full content box.