Visual Basic (Declaration) | |
---|---|
Public Sub AddSpanCell( _ ByVal row As Integer, _ ByVal column As Integer, _ ByVal rowCount As Integer, _ ByVal columnCount As Integer _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As SheetView Dim row As Integer Dim column As Integer Dim rowCount As Integer Dim columnCount As Integer instance.AddSpanCell(row, column, rowCount, columnCount) |
Parameters
- row
- Row index of cell at which to start span
- column
- Column index of cell at which to start span
- rowCount
- Number of rows to span
- columnCount
- Number of columns to span
Use this method to span cells. This adds a range of cells to the span model.
This example creates a span of cells from A1 through C3 in the active sheet.
C# | Copy Code |
---|---|
FarPoint.Win.Spread.SheetView sv = new FarPoint.Win.Spread.SheetView();
sv.AddSpanCell(0, 0, 2, 2);
fpSpread1.Sheets.Add(sv);
fpSpread1.ActiveSheet = sv; |
Visual Basic | Copy Code |
---|---|
Dim sv As New FarPoint.Win.Spread.SheetView() sv.AddSpanCell(0, 0, 2, 2) 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
Reference
SheetView ClassSheetView Members
GetSpanCell Method
RemoveSpanCell Method