[]
Use this class to access the IWorksheet involved in workbook sheet events, such as sheet creation, activation, or deletion.
worksheet.setName("Data");
SheetEventArgs args = new SheetEventArgs(worksheet);
IWorksheet sheet = args.getSheet();
SheetEventArgs(IWorksheet sheet) SheetEventArgs class with the specified worksheet.final IWorksheetgetSheet()SheetEventArgs.SheetEventArgs class with the specified worksheet.The provided worksheet is stored by this instance and can be retrieved by calling getSheet().
worksheet.setName("Data");
SheetEventArgs args = new SheetEventArgs(worksheet);
IWorksheet sheet = args.getSheet();
sheet - The IWorksheet associated with the event arguments. Can be null; the reference is stored as provided.SheetEventArgs. This method returns the IWorksheet instance carried by the event arguments, such as the worksheet provided to workbook sheet-related events.
SheetEventArgs args = new SheetEventArgs(worksheet);
IWorksheet sheet = args.getSheet();
String name = sheet.getName();
IWorksheet associated with this event arguments instance.