SpreadsheetGear 2012
ShapeAction Event (WorkbookView)






Occurs when a shape action happens.
Syntax
'Declaration
 
<System.ComponentModel.CategoryAttribute("Action")>
<System.ComponentModel.DescriptionAttribute("Occurs when a shape action happens.")>
Public Event ShapeAction As ShapeActionEventHandler
'Usage
 
Dim instance As WorkbookView
Dim handler As ShapeActionEventHandler
 
AddHandler instance.ShapeAction, handler
[System.ComponentModel.Category("Action")]
[System.ComponentModel.Description("Occurs when a shape action happens.")]
public event ShapeActionEventHandler ShapeAction
public event ShapeAction: ShapeActionEventHandler; 
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 a shape action happens.")]
public: __event ShapeActionEventHandler* ShapeAction
[System.ComponentModel.Category("Action")]
[System.ComponentModel.Description("Occurs when a shape action happens.")]
public:
event ShapeActionEventHandler^ ShapeAction
Event Data

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

PropertyDescription
ControlReturns the control responsible for the action or null if the shape is not a form control, textbox editor, or comment editor.  
ShapeReturns the shape responsible for the action.  
ShapeActionTypeReturns the shape action type.  
Remarks

The ShapeAction 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 ShapeAction 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