GrapeCity.Xaml.SpreadSheet.UI
RowGroupUndoAction Constructor
Example 


GrapeCity.Xaml.SpreadSheet.UI.UndoRedo Namespace > RowGroupUndoAction Class : RowGroupUndoAction Constructor
The worksheet.
The row group extent information.
Initializes a new instance of the RowGroupUndoAction class.
Syntax
'Declaration
 
Public Function New( _
   ByVal sheet As Worksheet, _
   ByVal rowGroupExtent As RowGroupExtent _
)
'Usage
 
Dim sheet As Worksheet
Dim rowGroupExtent As RowGroupExtent
 
Dim instance As New RowGroupUndoAction(sheet, rowGroupExtent)
public RowGroupUndoAction( 
   Worksheet sheet,
   RowGroupExtent rowGroupExtent
)

Parameters

sheet
The worksheet.
rowGroupExtent
The row group extent information.
Example
This example creates a RowGroupUndoAction object.
private void Grid_Loaded_1(object sender, RoutedEventArgs e)
{
gcSpreadSheet1.CanUserUndo = true;
}

private void Button_Click_1(object sender, RoutedEventArgs e)
{
GrapeCity.Xaml.SpreadSheet.UI.UndoRedo.RowGroupExtent group = new GrapeCity.Xaml.SpreadSheet.UI.UndoRedo.RowGroupExtent(3, 5);
GrapeCity.Xaml.SpreadSheet.UI.UndoRedo.RowGroupUndoAction action = new GrapeCity.Xaml.SpreadSheet.UI.UndoRedo.RowGroupUndoAction(this.gcSpreadSheet1.ActiveSheet, group);
this.gcSpreadSheet1.DoCommand(action);
}
Private Sub MainPage_Loaded(sender As Object, e As RoutedEventArgs) Handles Me.Loaded        
gcSpreadSheet1.CanUserUndo = True     
End Sub

Private Sub Button_Click_1(sender As Object, e As RoutedEventArgs)
Dim group As New GrapeCity.Xaml.SpreadSheet.UI.UndoRedo.RowGroupExtent(3, 5)
Dim action As New GrapeCity.Xaml.SpreadSheet.UI.UndoRedo.RowGroupUndoAction(gcSpreadSheet1.ActiveSheet, group)
gcSpreadSheet1.DoCommand(action)
End Sub
See Also

Reference

RowGroupUndoAction Class
RowGroupUndoAction Members