Spread Windows Forms 10.0 Product Documentation
SetArray Method (IArraySupport)
Example 


Starting model row index
Starting model column index
Two-dimensional object array[row,column] that contains tabular data
Sets an object array into a specified range of cells.
Syntax
'Declaration
 
Sub SetArray( _
   ByVal row As Integer, _
   ByVal column As Integer, _
   ByVal value(,) As Object _
) 
'Usage
 
Dim instance As IArraySupport
Dim row As Integer
Dim column As Integer
Dim value() As Object
 
instance.SetArray(row, column, value)
void SetArray( 
   int row,
   int column,
   object[,] value
)

Parameters

row
Starting model row index
column
Starting model column index
value
Two-dimensional object array[row,column] that contains tabular data
Example
This example sets an array into the data model.
FarPoint.Win.Spread.Model.IArraySupport ias;
ias = (FarPoint.Win.Spread.Model.IArraySupport)fpSpread1.ActiveSheet.Models.Data;
object[,] x = {{6.0, 5.0, 11.0, 7.0, 5.0, 4.0, 4.0}};
ias.SetArray(0, 0, x);
Dim ias As FarPoint.Win.Spread.Model.IArraySupport
ias = FpSpread1.ActiveSheet.Models.Data
Dim x As Object(,) = {{2.0, 3.0, 9.0, 1.0, 8.0, 7.0, 5.0}}
ias.SetArray(0, 0, x)
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

IArraySupport Interface
IArraySupport Members

 

 


Copyright © GrapeCity, inc. All rights reserved.