Spread WPF 15
GrapeCity.Windows.SpreadSheet.UI.UndoRedo Namespace / ColumnGroupExtent Class / ColumnGroupExtent Constructor
The group starting index.
The number of columns to group.
Example


In This Topic
    ColumnGroupExtent Constructor
    In This Topic
    Creates a new instance of the ColumnGroupExtent class.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal index As Integer, _
       ByVal count As Integer _
    )
    'Usage
     
    Dim index As Integer
    Dim count As Integer
     
    Dim instance As New ColumnGroupExtent(index, count)
    public ColumnGroupExtent( 
       int index,
       int count
    )

    Parameters

    index
    The group starting index.
    count
    The number of columns to group.
    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