Back to Table
FromEnumerable``1Method
Definition
- Namespace
- DOM.Elements.TableElements
- Assembly
- DOM.dll
Creates a from an enumerable data source. Table
Table FromEnumerable``1(IEnumerable<`> data, bool includeHeaders, TableStyle style)Parameters
- data
- The collection of objects used to populate the table.
- includeHeaders
- If, a header row will be generated. For complex types, property names are used as column headers.
- style
- An optional to apply to the resulting table. TableStyle
Exceptions
- System.ArgumentNullException: Thrown when is . data
Remarks
- For primitive or simple types (e.g.,, ), a single-column table is generated. - For complex types, public instance properties are used as columns. - Property values are converted to strings using . Int32 String ToString