FarPoint.Web.Spread Assembly > FarPoint.Web.Spread.Model Namespace > DefaultSheetDataModel Class : GetArray Method |
Overload | Description |
---|---|
GetArray(Int32,Int32,Int32,Int32) | Gets an object array from a specified range of cells. |
GetArray(Int32,Int32,Int32,Int32,Boolean) | Gets an object array from a specified range of cells. |
PrivateSubPage_Load(ByValsenderAsSystem.Object,ByValeAsSystem.EventArgs)HandlesMyBase.Load If(Me.IsPostBack)ThenReturn DimiAsInteger Fori=0To2 FpSpread1.ActiveSheetView.SetValue(i,0,i) FpSpread1.ActiveSheetView.SetValue(i,1,i) FpSpread1.ActiveSheetView.SetValue(i,2,i) Next EndSub PrivateSubButton1_Click(ByValsenderAsSystem.Object,ByValeAsSystem.EventArgs)HandlesButton1.Click DimdmAsFarPoint.Web.Spread.Model.DefaultSheetDataModel=CType(FpSpread1.ActiveSheetView.DataModel,FarPoint.Web.Spread.Model.DefaultSheetDataModel) Dimarr(,)AsObject arr=dm.GetArray(0,0,2,2) ListBox1.Items.Add(Convert.ToString(arr.GetLowerBound(1))) EndSub
privatevoidPage_Load(objectsender,System.EventArgse) { if(this.IsPostBack)return; FpSpread1.ActiveSheetView.RowCount=10; for(inti=0;i<4;i++) { FpSpread1.ActiveSheetView.SetValue(i,0,i); FpSpread1.ActiveSheetView.SetValue(i,1,i); FpSpread1.ActiveSheetView.SetValue(i,2,i); } } privatevoidButton1_Click(objectsender,System.EventArgse) { FarPoint.Web.Spread.Model.DefaultSheetDataModeldm=(FarPoint.Web.Spread.Model.DefaultSheetDataModel)FpSpread1.ActiveSheetView.DataModel; object[,]arr; arr=dm.GetArray(0,0,2,2); ListBox1.Items.Add(Convert.ToString(arr.GetLowerBound(1))); }
Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional