Table of Contents

Class Table

Namespace
NuvTools.Report.Table.Models
Assembly
NuvTools.Report.dll

Represents a table within a report document, containing metadata, styling, and content.

public class Table
Inheritance
Table
Inherited Members

Properties

Content

Gets or sets the content body of the table, including header and data rows.

public required Body Content { get; set; }

Property Value

Body

Info

Gets or sets the metadata information for this table, including title, company details, and issue information.

public required Info Info { get; set; }

Property Value

Info

Style

Gets or sets the styling options for this table, such as colors and font properties.

public Style? Style { get; set; }

Property Value

Style

Methods

SetRows<T>(List<Column>, List<T>)

Populates the table rows from a list of objects using reflection to extract property values.

public void SetRows<T>(List<Column> columns, List<T> objList)

Parameters

columns List<Column>

The column definitions that specify which properties to extract.

objList List<T>

The list of objects to convert into table rows.

Type Parameters

T

The type of objects in the list.

Remarks

This method uses reflection to read property values from each object based on the Column.Name property. Properties that don't exist or are null will be represented as empty strings.