Spread Silverlight Documentation
RowGroupExtent Constructor
Example 


The group starting index.
The number of rows to group.
Creates a new instance of the RowGroupExtent class.
Syntax
'Declaration
 
Public Function New( _
   ByVal index As System.Integer, _
   ByVal count As System.Integer _
)
'Usage
 
Dim index As System.Integer
Dim count As System.Integer
 
Dim instance As New RowGroupExtent(index, count)
public RowGroupExtent( 
   System.int index,
   System.int count
)

Parameters

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

Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

Reference

RowGroupExtent Class
RowGroupExtent Members

 

 


Copyright © GrapeCity, inc. All rights reserved.