Click or drag to resize

XlsWorksheet ImportCustomObjects Method (ICollection, String , Boolean, Int32, Int32, Int32, Boolean, String, Boolean)

Imports custom objects into a worksheet.

Namespace: Spire.Xls.Core.Spreadsheet
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
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.Collections ICollection
The collection of objects to import.
propertyNames
Type: System String
An array of property names to import.
isPropertyNameShown
Type: System Boolean
Indicates whether the property names should be shown in the worksheet.
firstRow
Type: System Int32
The first row to import the objects into.
firstColumn
Type: System Int32
The first column to import the objects into.
rowNumber
Type: System Int32
The number of rows to import the objects into.
insertRows
Type: System Boolean
Indicates whether to insert rows before importing the objects.
dateFormatString
Type: System String
The date format string to use for date properties.
convertStringToNumber
Type: System Boolean
Indicates whether to convert string properties to numbers.

Return Value

Type: Int32
The number of objects imported.
See Also