ChartEvents_SelectEventHandler 委托

定义

用于为事件添加事件处理程序的Select委托类型。 选择图表元素时发生 Select 事件。

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)

参数

ElementID
Int32

必填。 双击的对象。

Arg1
Int32

取决于 ElementID

Arg2
Int32

取决于 ElementID

属性

注解

下表显示了与每个 ElementID关联的参数。

xlAxisAxisIndexAxisType
xlAxisTitleAxisIndexAxisType
xlDisplayUnitLabelAxisIndexAxisType
xlMajorGridlinesAxisIndexAxisType
xlMinorGridlinesAxisIndexAxisType
xlPivotChartDropZoneDropZoneType
xlPivotChartFieldButtonDropZoneTypePivotFieldIndex
xlDownBarsGroupIndex
xlDropLinesGroupIndex
xlHiLoLinesGroupIndex
xlRadarAxisLabelsGroupIndex
xlSeriesLinesGroupIndex
xlUpBarsGroupIndex
xlChartArea
xlChartTitle
xlCorners
xlDataTable
xlFloor
xlLegend
xlNothing
xlPlotArea
xlWalls
xlDataLabelSeriesIndexPointIndex
xlErrorBarsSeriesIndex
xlLegendEntrySeriesIndex
xlLegendKeySeriesIndex
xlSeriesSeriesIndexPointIndex
xlTrendlineSeriesIndexTrendLineIndex
xlXErrorBarsSeriesIndex
xlYErrorBarsSeriesIndex
xlShapeShapeIndex

下表对参数含义进行说明。

AxisIndex指定轴主要或辅助。 可以是以下 XlAxisGroup 常量之一: xlPrimaryxlSecondary
AxisType指定坐标轴类型。 可以是以下 XlAxisType 常量之一: xlCategoryxlSeriesAxisxlValue
DropZoneType指定拖放区域类型: 列、 数据、 页或行字段。 可以是以下 XlPivotFieldOrientation 常量之一: xlColumnFieldxlDataFieldxlPageFieldxlRowField。 列和行字段常量分别指定系列和分类字段。
GroupIndex指定集合中 ChartGroups 特定图表组的偏移量。
PivotFieldIndex指定集合中 PivotFields 特定列 (序列) 、数据、页或行 (类别) 字段的偏移量。
PointIndex指定集合中序列中 Points 特定点的偏移量。 值 –1 指示已选择所有数据点。
SeriesIndex指定集合中 Series 特定序列的偏移量。
ShapeIndex指定集合中特定形状的 Shapes 偏移量。
TrendlineIndex指定序列中特定趋势线集合 Trendlines 中的偏移量。

适用于