Class TableCellRegion
Where a table cell is on a page: the cell's band in one fragment of its row (a row split over two pages has a region on each), with the document nodes it was laid out from. A consumer maps a point on the page back to a cell, a row or a column border with it (Word's drag to resize, WQ-0119) and reads a row's laid-out height (Distribute Rows) without re-deriving the table's layout.
public sealed class TableCellRegion : ILayoutPrimitive
- Inheritance
-
TableCellRegion
- Implements
- Inherited Members
Remarks
Layout emits one per cell per row fragment when source references are on (LayoutEngine.EmitSourceReferences,
LayoutSessionOptions.EmitSourceReferences), after the row's other primitives. A vertically merged cell's
continuation has a region of its own in each row it spans, with its own (continuation) cell's CellKey.
The band is the grid columns the cell covers (ColumnStart, ColumnSpan) by the row fragment's height; in a turned frame it is the page rectangle the band maps to.
Renderers ignore it: a PDF or an image is the same bytes with or without it.
Constructors
- TableCellRegion(Twips, Twips, Twips, Twips, long, long, long, int, int, int, Twips)
Initializes a region.
- TableCellRegion(Twips, Twips, Twips, Twips, long, long, long, int, int, int, Twips, Twips, Twips)
Initializes a region with the cell's text column (Phase 150).
Properties
- CellKey
Gets the cell's node key.
- ColumnSpan
Gets how many grid columns the cell covers.
- ColumnStart
Gets the first grid column the cell covers, from 0.
- ContentWidth
Gets the text column's width: the band less both cell margins and border insets.
- ContentX
Gets the left of the cell's text column (Phase 150): the band's left plus the border inset and the left cell margin, where the cell's text starts and its paragraphs' indents and tab stops are measured from (WQ-0123).
- Height
Gets the band's height: the row fragment's.
- RowHeight
Gets the whole row's laid-out height, over every fragment of it.
- RowIndex
Gets the row's index in its table, from 0.
- RowKey
Gets the row's node key.
- TableKey
Gets the table's node key: the value of its
DomNodeId.
- Width
Gets the band's width.
- X
Gets the band's left.
- Y
Gets the band's top.
Methods
- WithBounds(Twips, Twips, Twips, Twips)
The same region at another place: what a turned frame maps it to.