[]
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.
public class RangeEventArgs : EventArgs
Public Class RangeEventArgs
Inherits EventArgs
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;
| Name | Description |
|---|---|
| RangeEventArgs(IRange) | Creates event arguments for the specified range. |
| Name | Description |
|---|---|
| Range | Gets the range associated with the event. |