Share via


Visual Basic: MSChart Control

LegendSelected Event

See Also   Example   Applies To

Occurs when the user clicks on the chart legend.

Syntax

Private Sub object**_LegendSelected** (mouseFlagsAsInteger, cancelAsInteger)

The LegendSelected event syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
mouseFlags Integer. Indicates whether a key is held down when the mouse button is clicked.
cancel Integer. This argument is not used at this time.

Settings

The event handler determines if a key is held down when the mouse button is clicked and sets mouseFlags to:

Constants Description
VtChMouseFlagShiftKeyDown If the SHIFT key is held down.
VtChMouseFlagControlKeyDown If the CONTROL key is held down.