Spread WPF 14
GrapeCity.Windows.SpreadSheet.UI.UndoRedo Namespace / ColumnGroupUndoAction Class / ColumnGroupUndoAction Constructor
The worksheet.
The column group extent information.
Example


In This Topic
    ColumnGroupUndoAction Constructor
    In This Topic
    Creates a new instance of the ColumnGroupUndoAction class.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal sheet As Worksheet, _
       ByVal columnGroupExtent As ColumnGroupExtent _
    )
    'Usage
     
    Dim sheet As Worksheet
    Dim columnGroupExtent As ColumnGroupExtent
     
    Dim instance As New ColumnGroupUndoAction(sheet, columnGroupExtent)
    public ColumnGroupUndoAction( 
       Worksheet sheet,
       ColumnGroupExtent columnGroupExtent
    )

    Parameters

    sheet
    The worksheet.
    columnGroupExtent
    The column group extent information.
    Example
    This example creates a group.
    GcSpreadSheet1.CanUserUndo = true;
    var group = new GrapeCity.Windows.SpreadSheet.UI.UndoRedo.ColumnGroupExtent(3,5);
    var action = new GrapeCity.Windows.SpreadSheet.UI.UndoRedo.ColumnGroupUndoAction(GcSpreadSheet1.Sheets[0],group);
    GcSpreadSheet1.DoCommand(action);
    GcSpreadSheet1.CanUserUndo = True
    Dim group As New GrapeCity.Windows.SpreadSheet.UI.UndoRedo.ColumnGroupExtent(3,5)
    Dim action As New GrapeCity.Windows.SpreadSheet.UI.UndoRedo.ColumnGroupUndoAction(GcSpreadSheet1.Sheets(0),group)
    GcSpreadSheet1.DoCommand(action)
    See Also