...
Description |
---|
Excerpt |
---|
Imports data from a two-dimensional array of objects to cells in the worksheet. The new data will overwrite values and formulas in the target worksheet cells, but existing formatting will be preserved. |
Signature | ||||
---|---|---|---|---|
| ||||
public Area ImportData(System.Object[][] data, System.String[] columnNames, Cell startCell, DataImportProperties props)
{signature}{signature: |
Signature | ||||||
---|---|---|---|---|---|---|
| }
| |||||
Public Function ImportData(ByVal data As Object()(), ByVal columnNames As String(), ByVal startCell As Cell, ByVal props As DataImportProperties) As Area
{signature}
{parameters}
{param:data}A two\-dimensional array of values to import to the worksheet.
By default, the first dimension corresponds to column and the second to row \(that is, Object\[column\]\[row\]\).
Thus, an array of data \{ \ |
Parameters |
---|
Param | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||
A two-dimensional array of values to import to the worksheet. }, \{"B","Y" \}, \{"C","Z" \} \} would be inserted into the worksheet as: |A|X| |B|Y| |C|Z| If you enable [DataImportProperties.Transpose|DataImportProperties.Transpose] , the format will be \[row\]\[column\], so: \{ \
If you enable DataImportProperties.Transpose , the format will be [row][column], so: }, \{"X","Y","Z" \} \} would be inserted into the worksheet as: \|
|
Param | ||||
---|---|---|---|---|
| ||||
An array of column names for the imported data. |
Param | ||||
---|---|---|---|---|
| ||||
The cell at which to start entering the imported values. |
Param | ||||
---|---|---|---|---|
| ||||
A DataImportProperties object that contains a set of properties that will determine the behavior of the data import. |
Returns |
---|
An Area object representing the set of cells populated with the imported values. |
Example | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|