Spread Silverlight Documentation
SheetRenameUndoAction Constructor
Example 


GrapeCity.Windows.SpreadSheet.UI.UndoRedo Namespace > SheetRenameUndoAction Class : SheetRenameUndoAction Constructor
The renamed worksheet.
The worksheet's new name.
Creates a new instance of the SheetRenameUndoAction class.
Syntax
'Declaration
 
Public Function New( _
   ByVal sheet As Worksheet, _
   ByVal newName As System.String _
)
'Usage
 
Dim sheet As Worksheet
Dim newName As System.String
 
Dim instance As New SheetRenameUndoAction(sheet, newName)
public SheetRenameUndoAction( 
   Worksheet sheet,
   System.string newName
)

Parameters

sheet
The renamed worksheet.
newName
The worksheet's new name.
Example
This example renames a sheet.
var action = new GrapeCity.Windows.SpreadSheet.UI.UndoRedo.SheetRenameUndoAction(GcSpreadSheet1.Sheets[0], "SheetName");
GcSpreadSheet1.DoCommand(action);
Dim action As New GrapeCity.Windows.SpreadSheet.UI.UndoRedo.SheetRenameUndoAction(GcSpreadSheet1.Sheets(0), "SheetName")
GcSpreadSheet1.DoCommand(action)
See Also

Reference

SheetRenameUndoAction Class
SheetRenameUndoAction Members