Cells.ImportCustomObjects

ImportCustomObjects(ICollection, string[], bool, int, int, int, bool, string, bool)

Imports custom objects.

public int ImportCustomObjects(ICollection list, string[] propertyNames, bool isPropertyNameShown, 
    int firstRow, int firstColumn, int rowNumber, bool insertRows, string dateFormatString, 
    bool convertStringToNumber)
ParameterTypeDescription
listICollectionThe custom object
propertyNamesString[]The property names.If it is null,we will import all properties of the object.
isPropertyNameShownBooleanIndicates whether the property name will be imported to the first row.
firstRowInt32The row number of the first cell to import in.
firstColumnInt32The column number of the first cell to import in.
rowNumberInt32Number of rows to be imported.
insertRowsBooleanIndicates whether extra rows are added to fit data.
dateFormatStringStringDate format string for cells.
convertStringToNumberBooleanIndicates if this method will try to convert string to number.

Return Value

Total number of rows imported.

Remarks

The custom objects should be the same type.

See Also


ImportCustomObjects(ICollection, int, int, ImportTableOptions)

Imports custom objects.

public int ImportCustomObjects(ICollection list, int firstRow, int firstColumn, 
    ImportTableOptions options)
ParameterTypeDescription
listICollectionThe custom object
firstRowInt32The row number of the first cell to import in.
firstColumnInt32The column number of the first cell to import in.
optionsImportTableOptionsThe import options.

Return Value

Total number of rows imported.

Remarks

The custom objects should be the same type.

See Also