Chartsheet Events

Table 7.6 lists the events that are available for a chartsheet In VSTO.

Table 7.6. Events of a Chartssheet

Event

Description

ActivateEvent

Raised when the chartsheet is activated.

BeforeDoubleClick

Raised when you double-click the chartsheet. The BeforeDoubleClick event handler enables you to take action when the chartsheet is double-clicked, before the default action takes place.

BeforeRightClick

Raised when you right-click the chartsheet. The BeforeRightClick event handler enables you to take action when the chartsheet is right-clicked, before the default action takes place.

BindingContextChanged

Raised when the binding context of the chartsheet changes.

Calculate

Raised when you recalculate the chartsheet.

Change

Raised when a change occurs within the chartsheet.

Deactivate

Raised when the chartsheet is deactivated.

Disposed

Raised when the chartsheet is disposed of. This typically does not get raised until garbage collection is called to reclaim the memory that held the chartsheet.

MouseDown

Raised when you press the mouse button when the cursor is over a chartsheet.

MouseMove

Raised when you move the mouse pointer across a chartsheet.

MouseUp

Raised when you release the mouse button when the cursor is over a chartsheet.

Resize

Raised when the chartsheet is resized.

Table 7.6. Events of a Chartsheet (Continued)

Event

Description

SelectEvent

Raised when the chartsheet is selected.

SeriesChange

Raised when a data point on the chartsheet is changed.

Shutdown

Raised when the Chartsheet class unloads.

Startup

Raised when the Chartsheet class is initialized.

The events available for the chartsheet are similar to the events available on a Chart control and on a Worksheet. To see code examples, see the relevant sections earlier in this chapter.

0 0

Post a comment