SpreadsheetGear 2012
ShapeSelectionChanging Event (WorkbookView)






Occurs when the user is attempting to change the shape selection and provides the ability to cancel the change.
Syntax
'Declaration
 
<System.ComponentModel.CategoryAttribute("Action")>
<System.ComponentModel.DescriptionAttribute("Occurs when the shape selection is about to change.")>
Public Event ShapeSelectionChanging As ShapeSelectionChangingEventHandler
'Usage
 
Dim instance As WorkbookView
Dim handler As ShapeSelectionChangingEventHandler
 
AddHandler instance.ShapeSelectionChanging, handler
[System.ComponentModel.Category("Action")]
[System.ComponentModel.Description("Occurs when the shape selection is about to change.")]
public event ShapeSelectionChangingEventHandler ShapeSelectionChanging
public event ShapeSelectionChanging: ShapeSelectionChangingEventHandler; 
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 shape selection is about to change.")]
public: __event ShapeSelectionChangingEventHandler* ShapeSelectionChanging
[System.ComponentModel.Category("Action")]
[System.ComponentModel.Description("Occurs when the shape selection is about to change.")]
public:
event ShapeSelectionChangingEventHandler^ ShapeSelectionChanging
Event Data

The event handler receives an argument of type ShapeSelectionChangingEventArgs containing data related to this event. The following ShapeSelectionChangingEventArgs properties provide information specific to this event.

PropertyDescription
CancelGets or sets the value which specifies whether the event will be canceled.  
ShapeSelectionReturns the new shape selection.  
Remarks

The ShapeSelectionChanging 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 ShapeSelectionChanging is invoked.

Requirements

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

See Also

Reference

WorkbookView Class
WorkbookView Members

Send Feedback