Class TablixModel
- Namespace
- ReportWright.Design.Tablix
- Assembly
- ReportWright.Design.dll
A read view over a Tablix element: columns, rows, the two member hierarchies, and the visual grid the
designer draws and hit-tests (row headers left of the body, column headers above it, the corner above both).
Rebuilt from the tree on demand; it never mutates anything.
public sealed class TablixModel
- Inheritance
-
TablixModel
- Inherited Members
Constructors
- TablixModel(RdlElement)
Reads a Tablix.
Properties
- BodyColumns
Gets the body's column count.
- BodyRows
Gets the body's row count.
- Cells
Gets every visual cell.
- ColumnHeaderSizes
Gets the heights of the column-header rows (one per header level), outermost first.
- ColumnLeaves
Gets the column leaves, one per body column, in order.
- ColumnRoots
Gets the root members of the column hierarchy.
- ColumnWidths
Gets the body column widths in twips, in order.
- DataSetName
Gets the dataset the Tablix is bound to, or null.
- Element
Gets the element.
- RowHeaderSizes
Gets the widths of the row-header columns (one per header level), outermost first.
- RowHeights
Gets the body row heights in twips, in order.
- RowLeaves
Gets the row leaves, one per body row, in order.
- RowRoots
Gets the root members of the row hierarchy.
- TotalHeight
Gets the height of the whole grid in twips.
- TotalWidth
Gets the width of the whole grid in twips.
- VisualColumns
Gets the number of visual columns: row-header levels plus body columns.
- VisualRows
Gets the number of visual rows: column-header levels plus body rows.
Methods
- AllMembers()
Every member of both hierarchies, parents before children.
- BodyCell(int, int)
The body cell that starts at body coordinates, or null when the position is covered by another cell's span.
- CellAt(int, int)
The cell covering a visual position, or null for a hole.
- CellAtPoint(int, int)
The cell under a point relative to the Tablix's top-left, or null outside the grid.
- ColumnElement(int)
The
TablixColumnelement of a body column.
- ColumnGroups()
The groups of the column hierarchy, parents before children.
- FindGroup(string)
Finds a member by its group name.
- IsRowMember(TablixMemberView)
Whether a member belongs to the row hierarchy. Compares elements, so a view from an earlier read of the same Tablix answers correctly.
- RowElement(int)
The
TablixRowelement of a body row.
- RowGroups()
The groups of the row hierarchy, parents before children.
- Validate()
Checks the invariants the engine relies on: one row leaf per body row and one column leaf per body column, every body position covered exactly once, header levels of equal size along every path, no span crossing a group boundary, and one or no details group per hierarchy.
- VisualColumnLeft(int)
The left edge of a visual column, in twips from the Tablix's left.
- VisualColumnWidth(int)
The width of a visual column.
- VisualRowHeight(int)
The height of a visual row.
- VisualRowTop(int)
The top edge of a visual row, in twips from the Tablix's top.