[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.RangeEventArgs

RangeEventArgs Class

Represents event arguments that contain an IRange object.

RangeEventArgs is used with worksheet-level events such as Changed and SelectionChange, providing access to the range associated with the event.

Inheritance
RangeEventArgs
Namespace: GrapeCity.Documents.Excel
Assembly: DS.Documents.Excel.dll
Syntax
public class RangeEventArgs : EventArgs
Public Class RangeEventArgs
    Inherits EventArgs
Examples
Workbook workbook = new Workbook();
IWorksheet worksheet = workbook.ActiveSheet;
IRange changedRange = null;
worksheet.Changed += (sender, e) =>
{
    changedRange = e.Range;
};
worksheet.Range["B2"].Value = "Updated";
object changedValue = changedRange.Value;

Constructors

Name Description
RangeEventArgs(IRange)

Creates event arguments for the specified range.

Properties

Name Description
Range

Gets the range associated with the event.