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
)
Public Function ImportCustomObjects (
list As ICollection,
propertyNames As String(),
isPropertyNameShown As Boolean,
firstRow As Integer,
firstColumn As Integer,
rowNumber As Integer,
insertRows As Boolean,
dateFormatString As String,
convertStringToNumber As Boolean
) As Integer
public:
int ImportCustomObjects(
ICollection^ list,
array<String^>^ propertyNames,
bool isPropertyNameShown,
int firstRow,
int firstColumn,
int rowNumber,
bool insertRows,
String^ dateFormatString,
bool convertStringToNumber
)
member ImportCustomObjects :
list : ICollection *
propertyNames : string[] *
isPropertyNameShown : bool *
firstRow : int *
firstColumn : int *
rowNumber : int *
insertRows : bool *
dateFormatString : string *
convertStringToNumber : bool -> int
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