GrapeCity.Xaml.SpreadSheet.Data
RemoveColumns(Int32,Int32) Method
Example 


The index of the first column to remove.
The number of columns to remove.
Removes the column or columns on this sheet at the specified index.
Syntax
'Declaration
 
Public Overloads Sub RemoveColumns( _
   ByVal column As Integer, _
   ByVal count As Integer _
) 
'Usage
 
Dim instance As Worksheet
Dim column As Integer
Dim count As Integer
 
instance.RemoveColumns(column, count)
public void RemoveColumns( 
   int column,
   int count
)

Parameters

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

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

Private Sub Button_Click_1(sender As Object, e As RoutedEventArgs)
   'GcSpreadSheet1.Sheets(0).RemoveColumns(0, 2)
    GcSpreadSheet1.Sheets(0).RemoveColumns(0, 2, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells)
End Sub
Requirements

Target Platforms: Windows Server 2012, Windows RT

See Also

Reference

Worksheet Class
Worksheet Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options