XlsWorksheet
InsertArray Method (
Object
, Int32, Int32, Boolean)
|
Imports an array of objects into a worksheet.
Examples
The following code illustrates how to Imports an array of Object into a worksheet with specified alignment:
Namespace:
Spire.Xls.Core.Spreadsheet
Assembly:
Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public int InsertArray(
Object[] arrObject,
int firstRow,
int firstColumn,
bool isVertical
)
Public Function InsertArray (
arrObject As Object(),
firstRow As Integer,
firstColumn As Integer,
isVertical As Boolean
) As Integer
public:
virtual int InsertArray(
array<Object^>^ arrObject,
int firstRow,
int firstColumn,
bool isVertical
) sealed
abstract InsertArray :
arrObject : Object[] *
firstRow : int *
firstColumn : int *
isVertical : bool -> int
override InsertArray :
arrObject : Object[] *
firstRow : int *
firstColumn : int *
isVertical : bool -> int
Parameters
-
arrObject
-
Type:
System
Object
Array to import.
-
firstRow
-
Type:
System
Int32
The row number of the first cell to import in.
-
firstColumn
-
Type:
System
Int32
The column number of the first cell to import in.
-
isVertical
-
Type:
System
Boolean
TRUE if array should be imported vertically; FALSE - horizontally.
Return Value
Type:
Int32
Number of imported elements.
Implements
IWorksheet
InsertArray(
Object
, Int32, Int32, Boolean)
See Also