[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.SheetEventArgs

SheetEventArgs Class

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.

Inheritance
SheetEventArgs
Namespace: GrapeCity.Documents.Excel
Assembly: DS.Documents.Excel.dll
Syntax
public class SheetEventArgs : EventArgs
Public Class SheetEventArgs
    Inherits EventArgs
Examples
worksheet.Name = "Data";
SheetEventArgs args = new SheetEventArgs(worksheet);
IWorksheet sheet = args.Sheet;

Constructors

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.

Properties

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.