Click or drag to resize

TableReference Class

Reference to a DataTable.
Inheritance Hierarchy
SystemObject
  Demo3D.CommonTableReference

Namespace:  Demo3D.Common
Assembly:  Demo3D.Core (in Demo3D.Core.dll) Version: 15.0.2.11458
Syntax
C#
[TypeConverterAttribute(typeof(ExpandableObjectConverter))]
public class TableReference : IOwnedByVisual, 
	ICloneable

The TableReference type exposes the following members.

Properties
  NameDescription
Public propertyDataTable
The underlying DataTable.
Public propertySource
The source of the table to initialize from. This could be a path to an excel spreadsheet or a connection string for a database.
Public propertySourceQuery
The expression to initialize the table from the source with. This could be a cell or named range or an SQL Query.
Public propertyVisual
Visual that owns this TableReference.
Top
Methods
  NameDescription
Public methodClone
Make a copy of the TableReference, including a copy of the contained DataTable.
Public methodExportToExcel
Export underlying DataTable to an Excel file (.csv, .xls, .xlsx).
Public methodImportRow
Import a data row into the referenced table.
Public methodInitializeFromSource
(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.
Public methodLoadTableFromFile
Load the underlying DataTable from file.
Public methodToString
Returns a string showing the table name and number of rows.
(Overrides ObjectToString.)
Top
See Also