ImportCustomObjects
内容
[
隐藏
]ImportCustomObjects(ICollection, string[], bool, int, int, int, bool, string, bool)
导入自定义对象。
public int ImportCustomObjects(ICollection list, string[] propertyNames, bool isPropertyNameShown,
int firstRow, int firstColumn, int rowNumber, bool insertRows, string dateFormatString,
bool convertStringToNumber)
范围 | 类型 | 描述 |
---|---|---|
list | ICollection | 自定义对象 |
propertyNames | String[] | 属性名称。如果为空,我们将导入对象的所有属性。 |
isPropertyNameShown | Boolean | 表示是否将属性名称导入第一行。 |
firstRow | Int32 | 要导入的第一个单元格的行号。 |
firstColumn | Int32 | 要导入的第一个单元格的列号。 |
rowNumber | Int32 | 要导入的行数。 |
insertRows | Boolean | 指示是否添加额外的行以适应数据。 |
dateFormatString | String | 单元格的日期格式字符串。 |
convertStringToNumber | Boolean | 指示此方法是否会尝试将字符串转换为数字。 |
返回值
导入的总行数。
评论
自定义对象应该是相同的类型。
也可以看看
- class Cells
- 命名空间 Aspose.Cells
- 部件 Aspose.Cells
ImportCustomObjects(ICollection, int, int, ImportTableOptions)
导入自定义对象。
public int ImportCustomObjects(ICollection list, int firstRow, int firstColumn,
ImportTableOptions options)
范围 | 类型 | 描述 |
---|---|---|
list | ICollection | 自定义对象 |
firstRow | Int32 | 要导入的第一个单元格的行号。 |
firstColumn | Int32 | 要导入的第一个单元格的列号。 |
options | ImportTableOptions | 导入选项。 |
返回值
导入的总行数。
评论
自定义对象应该是相同的类型。
也可以看看
- class ImportTableOptions
- class Cells
- 命名空间 Aspose.Cells
- 部件 Aspose.Cells