'Declaration
<System.ComponentModel.CategoryAttribute("Action")> <System.ComponentModel.DescriptionAttribute("Occurs when the shape selection changes.")> Public Event ShapeSelectionChanged As ShapeSelectionChangedEventHandler
'Usage
Dim instance As WorkbookView Dim handler As ShapeSelectionChangedEventHandler AddHandler instance.ShapeSelectionChanged, handler
[System.ComponentModel.Category("Action")] [System.ComponentModel.Description("Occurs when the shape selection changes.")] public event ShapeSelectionChangedEventHandler ShapeSelectionChanged
public event ShapeSelectionChanged: ShapeSelectionChangedEventHandler;
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 changes.")] public: __event ShapeSelectionChangedEventHandler* ShapeSelectionChanged
[System.ComponentModel.Category("Action")] [System.ComponentModel.Description("Occurs when the shape selection changes.")] public: event ShapeSelectionChangedEventHandler^ ShapeSelectionChanged
The event handler receives an argument of type ShapeSelectionChangedEventArgs containing data related to this event. The following ShapeSelectionChangedEventArgs properties provide information specific to this event.
Property | Description |
---|---|
ShapeSelection | Returns the new shape selection. |
The WorkbookView.ShapeSelectionChanged 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.ShapeSelectionChanged 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