Gets an object array from a specified range of cells.
Syntax
Parameters
- row
- Row index of the cell from which to read into the array
- column
- Column index of the cell from which to read into the array
- rowCount
- Number of rows in the array
- columnCount
- Number of columns in the array
- formula
- If true, return formulas; otherwise, return values.
Example
This example uses the Formula parameter.
C# | Copy Code |
---|
FarPoint.Web.Spread.Model.DefaultSheetDataModel dm = (FarPoint.Web.Spread.Model.DefaultSheetDataModel)FpSpread1.ActiveSheetView.DataModel;
object[,] arr;
arr = dm.GetArray(0, 0, 2, 2, true);
ListBox1.Items.Add(Convert.ToString(arr.GetLowerBound(1))); |
Visual Basic | Copy Code |
---|
Dim dm As FarPoint.Web.Spread.Model.DefaultSheetDataModel = CType(FpSpread1.ActiveSheetView.DataModel, FarPoint.Web.Spread.Model.DefaultSheetDataModel)
Dim arr(,) As Object
arr = dm.GetArray(0, 0, 2, 2, True)
ListBox1.Items.Add(Convert.ToString(arr.GetLowerBound(1))) |
Requirements
Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6
See Also