'Declaration
<System.ComponentModel.CategoryAttribute("Action")> <System.ComponentModel.DescriptionAttribute("Occurs when the range selection changes.")> Public Event RangeSelectionChanged As RangeSelectionChangedEventHandler
'Usage
Dim instance As WorkbookView Dim handler As RangeSelectionChangedEventHandler AddHandler instance.RangeSelectionChanged, handler
[System.ComponentModel.Category("Action")] [System.ComponentModel.Description("Occurs when the range selection changes.")] public event RangeSelectionChangedEventHandler RangeSelectionChanged
public event RangeSelectionChanged: RangeSelectionChangedEventHandler;
In JScript, you can handle the events defined by another class, but you cannot define your own.
[System.ComponentModel.Category("Action")] [System.ComponentModel.Description("Occurs when the range selection changes.")] public: __event RangeSelectionChangedEventHandler* RangeSelectionChanged
[System.ComponentModel.Category("Action")] [System.ComponentModel.Description("Occurs when the range selection changes.")] public: event RangeSelectionChangedEventHandler^ RangeSelectionChanged
The event handler receives an argument of type RangeSelectionChangedEventArgs containing data related to this event. The following RangeSelectionChangedEventArgs properties provide information specific to this event.
Property | Description |
---|---|
RangeSelection | Returns the new range selection. |
This event also occurs when the active tab is changed.
The WorkbookView.RangeSelectionChanged event is always invoked on the thread which created the workbook view control, and a lock is always acquired on the workbook set associated with the workbook view control before WorkbookView.RangeSelectionChanged is invoked.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2