Adds one or more columns to the data model at the specified position.
Syntax
Parameters
- column
- Index of column at which to add new column
- count
- Number of columns to add
Exceptions
Example
This example adds five new columns and seven new rows to the data model.
C# | Copy Code |
---|
FarPoint.Win.Spread.Model.DefaultSheetDataModel dataModel = new FarPoint.Win.Spread.Model.DefaultSheetDataModel(10, 10);
dataModel.AddColumns(2, 5);
dataModel.AddRows(2, 7);
fpSpread1.ActiveSheet.Models.Data = dataModel; |
Visual Basic | Copy Code |
---|
Dim dataModel As New FarPoint.Win.Spread.Model.DefaultSheetDataModel(10, 10)
dataModel.AddColumns(2, 5)
dataModel.AddRows(2, 7)
FpSpread1.ActiveSheet.Models.Data = dataModel |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also