Visual Basic (Declaration) | |
---|---|
Public Function New( _ ByVal dataModel As ISheetDataModel _ ) |
Visual Basic (Usage) | ![]() |
---|---|
Dim dataModel As ISheetDataModel Dim instance As New SheetView(dataModel) |
C# | |
---|---|
public SheetView( ISheetDataModel dataModel ) |
Parameters
- dataModel
- Data model
This example creates a SheetView object, adds it to the collection of sheets, and applies it to the active sheet.
Visual Basic | ![]() |
---|---|
Dim dm As New FarPoint.Win.Spread.Model.DefaultSheetDataModel(4, 4) Dim sv As New FarPoint.Win.Spread.SheetView(dm) FpSpread1.Sheets.Add(sv) FpSpread1.ActiveSheet = sv |
C# | ![]() |
---|---|
FarPoint.Win.Spread.Model.DefaultSheetDataModel dm = new FarPoint.Win.Spread.Model.DefaultSheetDataModel(4, 4); FarPoint.Win.Spread.SheetView sv = new FarPoint.Win.Spread.SheetView(dm); fpSpread1.Sheets.Add(sv); fpSpread1.ActiveSheet = sv; |
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