GrapeCity.Xaml.SpreadSheet.Data
Add Method (SheetSpanModel)
Example 


GrapeCity.Xaml.SpreadSheet.Data Namespace > SheetSpanModel Class : Add Method
The row index at which to start the span.
The column index at which to start the span.
The number of rows in the span.
The number of columns in the span.
Adds a cell span to the collection.
Syntax
'Declaration
 
Public Overrides NotOverridable Function Add( _
   ByVal row As Integer, _
   ByVal column As Integer, _
   ByVal rowCount As Integer, _
   ByVal columnCount As Integer _
) As Boolean
'Usage
 
Dim instance As SheetSpanModel
Dim row As Integer
Dim column As Integer
Dim rowCount As Integer
Dim columnCount As Integer
Dim value As Boolean
 
value = instance.Add(row, column, rowCount, columnCount)
public override bool Add( 
   int row,
   int column,
   int rowCount,
   int columnCount
)

Parameters

row
The row index at which to start the span.
column
The column index at which to start the span.
rowCount
The number of rows in the span.
columnCount
The number of columns in the span.

Return Value

true if the span is added successfully; otherwise, false.
Example
This example uses the Add method.
gcSpreadSheet1.Sheets[0].SpanModel.Add(0, 0, 2, 2);
gcSpreadSheet1.Sheets[0].SpanModel.Swap(0, 0, 2, 2, 2, 2);
GcSpreadSheet1.Sheets(0).SpanModel.Add(0, 0, 2, 2)
GcSpreadSheet1.Sheets(0).SpanModel.Swap(0, 0, 2, 2, 2, 2)
See Also

Reference

SheetSpanModel Class
SheetSpanModel Members