Spread Windows Forms 11.0 Product Documentation
GetArray Method (DefaultSheetDataModel)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.Model Namespace > DefaultSheetDataModel Class : GetArray Method
Gets an object array from a specified range of cells.
Overload List
OverloadDescription
Gets an object array from a specified range of cells.  
Gets an object array from a specified range of cells.  
Remarks
This method returns a two-dimensional array (row,column).
Example
This example gets an array object from a range of cells.
FarPoint.Win.Spread.Model.DefaultSheetDataModel dataModel = new FarPoint.Win.Spread.Model.DefaultSheetDataModel(5, 5);
object[,] arr;
fpSpread1.ActiveSheet.Models.Data = dataModel;
arr = dataModel.GetArray(0, 0, 2, 2);
listBox1.Items.Add(arr.GetLowerBound(1).ToString());
Dim dataModel As New FarPoint.Win.Spread.Model.DefaultSheetDataModel(5, 5)
Dim arr(,) As Object
FpSpread1.ActiveSheet.Models.Data = dataModel
arr = dataModel.GetArray(0, 0, 2, 2)
ListBox1.Items.Add(arr.GetLowerBound(1).ToString())
See Also

Reference

DefaultSheetDataModel Class
DefaultSheetDataModel Members