Spread Windows Forms 12.0 Product Documentation
AddSpanCell Method
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : AddSpanCell Method
Row index of cell at which to start span
Column index of cell at which to start span
Number of rows to span
Number of columns to span
Adds a span of cells on this sheet.
Syntax
'Declaration
 
Public Sub AddSpanCell( _
   ByVal row As Integer, _
   ByVal column As Integer, _
   ByVal rowCount As Integer, _
   ByVal columnCount As Integer _
) 
'Usage
 
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)
public void AddSpanCell( 
   int row,
   int column,
   int rowCount,
   int 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
Remarks

Use this method to span cells. This adds a range of cells to the span model.

Example
This example creates a span of cells from A1 through C3 in the active sheet.
FarPoint.Win.Spread.SheetView sv = new FarPoint.Win.Spread.SheetView();
sv.AddSpanCell(0, 0, 2, 2);
fpSpread1.Sheets.Add(sv);
fpSpread1.ActiveSheet = sv;
Dim sv As New FarPoint.Win.Spread.SheetView()
sv.AddSpanCell(0, 0, 2, 2)
FpSpread1.Sheets.Add(sv)
FpSpread1.ActiveSheet = sv
See Also

Reference

SheetView Class
SheetView Members
GetSpanCell Method
RemoveSpanCell Method

User-Task Documentation

Creating a Span of Cells