Spread Silverlight Documentation
RemoveColumns(Int32,Int32,SheetArea) Method
Example 


GrapeCity.Windows.SpreadSheet.Data Namespace > Worksheet Class > RemoveColumns Method : RemoveColumns(Int32,Int32,SheetArea) Method
The index of the first column to remove.
The number of columns to remove.
The sheet area from which to remove columns.
Removes the column or columns on this sheet at the specified index in the specified sheet area.
Syntax
'Declaration
 
Public Overloads Sub RemoveColumns( _
   ByVal column As System.Integer, _
   ByVal count As System.Integer, _
   ByVal sheetArea As SheetArea _
) 
'Usage
 
Dim instance As Worksheet
Dim column As System.Integer
Dim count As System.Integer
Dim sheetArea As SheetArea
 
instance.RemoveColumns(column, count, sheetArea)
public void RemoveColumns( 
   System.int column,
   System.int count,
   SheetArea sheetArea
)

Parameters

column
The index of the first column to remove.
count
The number of columns to remove.
sheetArea
The sheet area from which to remove columns.
Example
This example uses the RemoveColumns method.
gcSpreadSheet1.Sheets[0].Cells[0, 0, 0, 5].Text = "Test";

private void button1_Click(object sender, RoutedEventArgs e)
{
    //gcSpreadSheet1.Sheets[0].RemoveColumns(0, 2);
    gcSpreadSheet1.Sheets[0].RemoveColumns(0, 2, GrapeCity.Windows.SpreadSheet.Data.SheetArea.Cells);
}
GcSpreadSheet1.Sheets(0).Cells(0, 0, 0, 5).Text = "Test"

Private Sub Button1_Click(sender As System.Object, e As System.Windows.RoutedEventArgs) Handles Button1.Click
   'GcSpreadSheet1.Sheets(0).RemoveColumns(0, 2)
    GcSpreadSheet1.Sheets(0).RemoveColumns(0, 2, GrapeCity.Windows.SpreadSheet.Data.SheetArea.Cells)
End Sub
See Also

Reference

Worksheet Class
Worksheet Members
Overload List