Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread.Model Namespace / DefaultSheetSpanModel Class / Add Method
Row index of cell at which to start span
Column index of cell at which to start span
Number of rows in span
Number of columns in span
Example


In This Topic
    Add Method (DefaultSheetSpanModel)
    In This Topic
    Adds a cell span to the collection.
    Syntax
    'Declaration
     
    Public Overrides Function Add( _
       ByVal row As Integer, _
       ByVal column As Integer, _
       ByVal rowCount As Integer, _
       ByVal columnCount As Integer _
    ) As Boolean
    'Usage
     
    Dim instance As DefaultSheetSpanModel
    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
    Row index of cell at which to start span
    column
    Column index of cell at which to start span
    rowCount
    Number of rows in span
    columnCount
    Number of columns in span

    Return Value

    Boolean: true if the cell span added successfully; false otherwise
    Example
    This example adds a span to the model.
    FarPoint.Win.Spread.Model.DefaultSheetSpanModel defspanModel = new FarPoint.Win.Spread.Model.DefaultSheetSpanModel();
    fpSpread1.ActiveSheet.Models.Span = defspanModel;
    defspanModel.Add(0, 0, 3, 3);
    Dim defspanModel As New FarPoint.Win.Spread.Model.DefaultSheetSpanModel()
    FpSpread1.ActiveSheet.Models.Span = defspanModel
    defspanModel.Add(0, 0, 3, 3)
    See Also