Spread WPF Documentation
RowGroupUndoAction Constructor
Example 


GrapeCity.Windows.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 an action that can be undone.
gcSpreadSheet1.CanUserUndo = true;

 private void button1_Click(object sender, RoutedEventArgs e)
        {
GrapeCity.Windows.SpreadSheet.UI.UndoRedo.RowGroupExtent group = new GrapeCity.Windows.SpreadSheet.UI.UndoRedo.RowGroupExtent(3, 5);
GrapeCity.Windows.SpreadSheet.UI.UndoRedo.RowGroupUndoAction action = new GrapeCity.Windows.SpreadSheet.UI.UndoRedo.RowGroupUndoAction(this.gcSpreadSheet1.ActiveSheet, group);
this.gcSpreadSheet1.DoCommand(action);
gcSpreadSheet1.Invalidate();
        }
GcSpreadSheet1.CanUserUndo = True

Private Sub Button1_Click(sender As System.Object, e As System.Windows.RoutedEventArgs) Handles Button1.Click
        Dim group As New GrapeCity.Windows.SpreadSheet.UI.UndoRedo.RowGroupExtent(3, 5)
        Dim action As New GrapeCity.Windows.SpreadSheet.UI.UndoRedo.RowGroupUndoAction(GcSpreadSheet1.ActiveSheet, group)
        GcSpreadSheet1.DoCommand(action)
        GcSpreadSheet1.Invalidate()
    End Sub
See Also

Reference

RowGroupUndoAction Class
RowGroupUndoAction Members