Spread Silverlight Documentation
GrapeCity.Windows.SpreadSheet.Data Namespace / Worksheet Class / ClearSpanCells Method
The sheet area.
Example


In This Topic
    ClearSpanCells Method
    In This Topic
    Clears the span that contains a specified anchor cell from a range of cells in the specified sheet area.
    Syntax
    'Declaration
     
    Public Sub ClearSpanCells( _
       ByVal sheetArea As SheetArea _
    ) 
    'Usage
     
    Dim instance As Worksheet
    Dim sheetArea As SheetArea
     
    instance.ClearSpanCells(sheetArea)
    public void ClearSpanCells( 
       SheetArea sheetArea
    )

    Parameters

    sheetArea
    The sheet area.
    Example
    This example uses the ClearSpanCells method.
    gcSpreadSheet1.Sheets[0].AddSpanCell(1, 1, 3, 3);
    gcSpreadSheet1.Invalidate();
          
    private void button1_Click(object sender, RoutedEventArgs e)
      {
            gcSpreadSheet1.Sheets[0].ClearSpanCells(GrapeCity.Windows.SpreadSheet.Data.SheetArea.Cells);
            gcSpreadSheet1.Invalidate();
       }
    GcSpreadSheet1.Sheets(0).AddSpanCell(1, 1, 3, 3)
    GcSpreadSheet1.Invalidate()
    
    Private Sub Button1_Click(sender As System.Object, e As System.Windows.RoutedEventArgs) Handles Button1.Click
    GcSpreadSheet1.Sheets(0).ClearSpanCells(GrapeCity.Windows.SpreadSheet.Data.SheetArea.Cells)
    GcSpreadSheet1.Invalidate()
    End Sub
    See Also