CellsImportCustomObjects Method (ICollection, String, Boolean, Int32, Int32, Int32, Boolean, String, Boolean)

Imports custom objects.

Namespace:  Aspose.Cells
Assembly:  Aspose.Cells (in Aspose.Cells.dll) Version: 20.9.0.0 (20.9)
Syntax
public int ImportCustomObjects(
	ICollection list,
	string[] propertyNames,
	bool isPropertyNameShown,
	int firstRow,
	int firstColumn,
	int rowNumber,
	bool insertRows,
	string dateFormatString,
	bool convertStringToNumber
)

Parameters

list
Type: System.CollectionsICollection
The custom object
propertyNames
Type: SystemString
The property names.If it is null,we will import all properties of the object.
isPropertyNameShown
Type: SystemBoolean
Indicates whether the property name will be imported to the first row.
firstRow
Type: SystemInt32
The row number of the first cell to import in.
firstColumn
Type: SystemInt32
The column number of the first cell to import in.
rowNumber
Type: SystemInt32
Number of rows to be imported.
insertRows
Type: SystemBoolean
Indicates whether extra rows are added to fit data.
dateFormatString
Type: SystemString
Date format string for cells.
convertStringToNumber
Type: SystemBoolean
Indicates if this method will try to convert string to number.

Return Value

Type: Int32
Total number of rows imported.
Remarks
The custom objects should be the same type.
See Also