ChartEvents_SelectEventHandler Delegate
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.
xlAxis | AxisIndex | AxisType |
xlAxisTitle | AxisIndex | AxisType |
xlDisplayUnitLabel | AxisIndex | AxisType |
xlMajorGridlines | AxisIndex | AxisType |
xlMinorGridlines | AxisIndex | AxisType |
xlPivotChartDropZone | DropZoneType | None |
xlPivotChartFieldButton | DropZoneType | PivotFieldIndex |
xlDownBars | GroupIndex | None |
xlDropLines | GroupIndex | None |
xlHiLoLines | GroupIndex | None |
xlRadarAxisLabels | GroupIndex | None |
xlSeriesLines | GroupIndex | None |
xlUpBars | GroupIndex | None |
xlChartArea | None | None |
xlChartTitle | None | None |
xlCorners | None | None |
xlDataTable | None | None |
xlFloor | None | None |
xlLegend | None | None |
xlNothing | None | None |
xlPlotArea | None | None |
xlWalls | None | None |
xlDataLabel | SeriesIndex | PointIndex |
xlErrorBars | SeriesIndex | None |
xlLegendEntry | SeriesIndex | None |
xlLegendKey | SeriesIndex | None |
xlSeries | SeriesIndex | PointIndex |
xlTrendline | SeriesIndex | TrendLineIndex |
xlXErrorBars | SeriesIndex | None |
xlYErrorBars | SeriesIndex | None |
xlShape | ShapeIndex | None |
The following table describes the meaning of the arguments.
AxisIndex | Specifies whether the axis is primary or secondary. Can be one of the following XlAxisGroup constants: xlPrimary or xlSecondary. |
AxisType | Specifies the axis type. Can be one of the following XlAxisType constants: xlCategory, xlSeriesAxis, or xlValue. |
DropZoneType | Specifies 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. |
GroupIndex | Specifies the offset within the ChartGroups collection for a specific chart group. |
PivotFieldIndex | Specifies the offset within the PivotFields collection for a specific column (series), data, page, or row (category) field. |
PointIndex | Specifies the offset within the Points collection for a specific point within a series. The value –1 indicates that all data points are selected. |
SeriesIndex | Specifies the offset within the Series collection for a specific series. |
ShapeIndex | Specifies the offset within the Shapes collection for a specific shape. |
TrendlineIndex | Specifies the offset within the Trendlines collection for a specific trendline within a series. |
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應