[]
Represents EventArgs which contain a Worksheet object;
Use this class to access the IWorksheet involved in workbook sheet events, such as sheet creation, activation, or deletion.
public class SheetEventArgs : EventArgs
Public Class SheetEventArgs
Inherits EventArgs
worksheet.Name = "Data";
SheetEventArgs args = new SheetEventArgs(worksheet);
IWorksheet sheet = args.Sheet;
| Name | Description |
|---|---|
| SheetEventArgs(IWorksheet) | Initializes a new instance of the SheetEventArgs class with the specified worksheet. The provided worksheet is stored by this instance and can be retrieved by using Sheet. |
| Name | Description |
|---|---|
| Sheet | Gets the worksheet associated with this SheetEventArgs. This property returns the IWorksheet instance carried by the event arguments, such as the worksheet provided to workbook sheet-related events. |