TableReference Class |
Namespace: Demo3D.Common
[TypeConverterAttribute(typeof(ExpandableObjectConverter))] public class TableReference : IOwnedByVisual, ICloneable
The TableReference type exposes the following members.
| Name | Description | |
|---|---|---|
| DataTable |
The underlying DataTable.
| |
| Source |
The source of the table to initialize from.
This could be a path to an excel spreadsheet or a connection string for a database.
| |
| SourceQuery |
The expression to initialize the table from the source with.
This could be a cell or named range or an SQL Query.
| |
| Visual | Visual that owns this TableReference.
|
| Name | Description | |
|---|---|---|
| Clone |
Make a copy of the TableReference, including a copy of the contained DataTable.
| |
| ExportToExcel |
Export underlying DataTable to an Excel file (.csv, .xls, .xlsx).
| |
| ImportRow |
Import a data row into the referenced table.
| |
| InitializeFromSource |
(Re-)read the table data from the source and source query fields on the table reference.
This will automatically be called in the OnInitialize phase but for Sim3D it may be useful to force
it to be re-read updated data from the Analysis spreadsheet during the OnExperimentPreInitialize phase.
| |
| LoadTableFromFile |
Load the underlying DataTable from file.
| |
| ToString |
Returns a string showing the table name and number of rows.
(Overrides ObjectToString.) |