GrapeCity.Xaml.SpreadSheet.UI
RemoveColumnViewport(Int32) Method
Example 


GrapeCity.Xaml.SpreadSheet.UI Namespace > GcSpreadSheet Class : RemoveColumnViewport(Int32) Method
The column viewport index to remove.
Removes a column viewport from the control.
Syntax
'Declaration
 
Public Sub RemoveColumnViewport( _
   ByVal columnViewportIndex As Integer _
) 
'Usage
 
Dim instance As GcSpreadSheet
Dim columnViewportIndex As Integer
 
instance.RemoveColumnViewport(columnViewportIndex)
public void RemoveColumnViewport( 
   int columnViewportIndex
)

Parameters

columnViewportIndex
The column viewport index to remove.
Example
This example uses the RemoveColumnViewport method.
private void Grid_Loaded_1(object sender, RoutedEventArgs e)
        {
            gcSpreadSheet1.AddColumnViewport(0, 100);
            gcSpreadSheet1.AddRowViewport(0, 80);
            gcSpreadSheet1.RowSplitBoxAlignment = GrapeCity.Xaml.SpreadSheet.UI.SplitBoxAlignment.Leading;
            gcSpreadSheet1.ColumnSplitBoxAlignment = GrapeCity.Xaml.SpreadSheet.UI.SplitBoxAlignment.Trailing;
            gcSpreadSheet1.Sheets[0].SetViewportHeight(0, 100);
            gcSpreadSheet1.Sheets[0].SetViewportWidth(0, 100);
        }

        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            gcSpreadSheet1.RemoveColumnViewport(0);
            gcSpreadSheet1.RemoveRowViewport(0);           
        }
Private Sub MainPage_Loaded(sender As Object, e As RoutedEventArgs) Handles Me.Loaded        
        gcSpreadSheet1.AddColumnViewport(0, 100)
        gcSpreadSheet1.AddRowViewport(0, 80)
        gcSpreadSheet1.RowSplitBoxAlignment = GrapeCity.Xaml.SpreadSheet.UI.SplitBoxAlignment.Leading
        gcSpreadSheet1.ColumnSplitBoxAlignment = GrapeCity.Xaml.SpreadSheet.UI.SplitBoxAlignment.Trailing
        gcSpreadSheet1.Sheets(0).SetViewportHeight(0, 100)
        gcSpreadSheet1.Sheets(0).SetViewportWidth(0, 100)     
    End Sub

    Private Sub Button_Click_1(sender As Object, e As RoutedEventArgs)        
        gcSpreadSheet1.RemoveColumnViewport(0)
        gcSpreadSheet1.RemoveRowViewport(0)
    End Sub
See Also

Reference

GcSpreadSheet Class
GcSpreadSheet Members