[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.SheetEventArgs.-ctor

SheetEventArgs Constructor

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.

Declaration
public SheetEventArgs(IWorksheet sheet)
Public Sub New(sheet As IWorksheet)
Parameters
Type Name Description
IWorksheet sheet

The IWorksheet associated with the event arguments. The reference is stored as provided.

Examples
worksheet.Name = "Data";
SheetEventArgs args = new SheetEventArgs(worksheet);
IWorksheet sheet = args.Sheet;