SpreadsheetGear.Windows.Controls Namespace > WorkbookView Class : RangeSelectionChanging Event |
'Declaration
<System.ComponentModel.CategoryAttribute("Action")> <System.ComponentModel.DescriptionAttribute("Occurs when the range selection is about to change.")> Public Event RangeSelectionChanging As RangeSelectionChangingEventHandler
'Usage
Dim instance As WorkbookView Dim handler As RangeSelectionChangingEventHandler AddHandler instance.RangeSelectionChanging, handler
[System.ComponentModel.Category("Action")] [System.ComponentModel.Description("Occurs when the range selection is about to change.")] public event RangeSelectionChangingEventHandler RangeSelectionChanging
public event RangeSelectionChanging: RangeSelectionChangingEventHandler;
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 is about to change.")] public: __event RangeSelectionChangingEventHandler* RangeSelectionChanging
[System.ComponentModel.Category("Action")] [System.ComponentModel.Description("Occurs when the range selection is about to change.")] public: event RangeSelectionChangingEventHandler^ RangeSelectionChanging
The event handler receives an argument of type RangeSelectionChangingEventArgs containing data related to this event. The following RangeSelectionChangingEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Cancel | Gets or sets the value which specifies whether the event will be canceled. |
RangeSelection | Returns the new range selection. |
This event does not occur when the active tab is about to change.
The RangeSelectionChanging 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 RangeSelectionChanging 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