Spread WPF Documentation
RemoveSpanCell(Int32,Int32) Method
Example 


The row index of the anchor cell for the span (at which spanned cells start).
The column index of the anchor cell for the span (at which spanned cells start).
Removes the span that contains a specified anchor cell from a range of cells in the specified sheet area.
Syntax
'Declaration
 
Public Overloads Sub RemoveSpanCell( _
   ByVal row As System.Integer, _
   ByVal column As System.Integer _
) 
'Usage
 
Dim instance As Worksheet
Dim row As System.Integer
Dim column As System.Integer
 
instance.RemoveSpanCell(row, column)
public void RemoveSpanCell( 
   System.int row,
   System.int column
)

Parameters

row
The row index of the anchor cell for the span (at which spanned cells start).
column
The column index of the anchor cell for the span (at which spanned cells start).
Example
This example uses the RemoveSpanCell method.
gcSpreadSheet1.Sheets[0].AddSpanCell(1, 1, 3, 3);
gcSpreadSheet1.Invalidate();
      
private void button1_Click(object sender, RoutedEventArgs e)
  {
       // gcSpreadSheet1.Sheets[0].RemoveSpanCell(1, 1);
        gcSpreadSheet1.Sheets[0].RemoveSpanCell(1, 1, 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).RemoveSpanCell(1, 1)
GcSpreadSheet1.Sheets(0).RemoveSpanCell(1, 1, GrapeCity.Windows.SpreadSheet.Data.SheetArea.Cells)
GcSpreadSheet1.Invalidate()
End Sub
Requirements

Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional (SP4), Windows XP (SP2), Windows 2008, Windows 2003 Server (SP1)

See Also

Reference

Worksheet Class
Worksheet Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.