API Reference
PdfTableCellViewport
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
- Property PdfTableCell.Viewport
Accepted by parameters
- Method PdfTableCell.WithViewport
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
- contentHeight System.Double
- width System.Double
- height System.Double
- offsetX System.Double = 0
- offsetY System.Double = 0
Inherited Methods
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.