Edit

Share via


ChartEvents_SelectEventHandler Delegate

Definition

A Delegate type used to add an event handler for the Select event. The Select event occurs when a chart element is selected.

public delegate void ChartEvents_SelectEventHandler(int ElementID, int Arg1, int Arg2);
[System.Runtime.InteropServices.ComVisible(false)]
public delegate void ChartEvents_SelectEventHandler(int ElementID, int Arg1, int Arg2);
Public Delegate Sub ChartEvents_SelectEventHandler(ElementID As Integer, Arg1 As Integer, Arg2 As Integer)

Parameters

ElementID
Int32

Required. The double-clicked object.

Arg1
Int32

Depends on ElementID.

Arg2
Int32

Depends on ElementID.

Attributes

Remarks

The following table shows the arguments associated with each ElementID.

xlAxisAxisIndexAxisType
xlAxisTitleAxisIndexAxisType
xlDisplayUnitLabelAxisIndexAxisType
xlMajorGridlinesAxisIndexAxisType
xlMinorGridlinesAxisIndexAxisType
xlPivotChartDropZoneDropZoneTypeNone
xlPivotChartFieldButtonDropZoneTypePivotFieldIndex
xlDownBarsGroupIndexNone
xlDropLinesGroupIndexNone
xlHiLoLinesGroupIndexNone
xlRadarAxisLabelsGroupIndexNone
xlSeriesLinesGroupIndexNone
xlUpBarsGroupIndexNone
xlChartAreaNoneNone
xlChartTitleNoneNone
xlCornersNoneNone
xlDataTableNoneNone
xlFloorNoneNone
xlLegendNoneNone
xlNothingNoneNone
xlPlotAreaNoneNone
xlWallsNoneNone
xlDataLabelSeriesIndexPointIndex
xlErrorBarsSeriesIndexNone
xlLegendEntrySeriesIndexNone
xlLegendKeySeriesIndexNone
xlSeriesSeriesIndexPointIndex
xlTrendlineSeriesIndexTrendLineIndex
xlXErrorBarsSeriesIndexNone
xlYErrorBarsSeriesIndexNone
xlShapeShapeIndexNone

The following table describes the meaning of the arguments.

AxisIndexSpecifies whether the axis is primary or secondary. Can be one of the following XlAxisGroup constants: xlPrimary or xlSecondary.
AxisTypeSpecifies the axis type. Can be one of the following XlAxisType constants: xlCategory, xlSeriesAxis, or xlValue.
DropZoneTypeSpecifies the drop zone type: column, data, page, or row field. Can be one of the following XlPivotFieldOrientation constants: xlColumnField, xlDataField, xlPageField, or xlRowField. The column and row field constants specify the series and category fields, respectively.
GroupIndexSpecifies the offset within the ChartGroups collection for a specific chart group.
PivotFieldIndexSpecifies the offset within the PivotFields collection for a specific column (series), data, page, or row (category) field.
PointIndexSpecifies the offset within the Points collection for a specific point within a series. The value –1 indicates that all data points are selected.
SeriesIndexSpecifies the offset within the Series collection for a specific series.
ShapeIndexSpecifies the offset within the Shapes collection for a specific shape.
TrendlineIndexSpecifies the offset within the Trendlines collection for a specific trendline within a series.

Applies to