GrapeCity.Xaml.SpreadSheet.UI
SheetRenameUndoAction Constructor
Example 


GrapeCity.Xaml.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 String _
)
'Usage
 
Dim sheet As Worksheet
Dim newName As String
 
Dim instance As New SheetRenameUndoAction(sheet, newName)
public SheetRenameUndoAction( 
   Worksheet sheet,
   string newName
)

Parameters

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

Reference

SheetRenameUndoAction Class
SheetRenameUndoAction Members