ChartEvents_BeforeDoubleClickEventHandler 委托
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
用于为事件添加事件处理程序的BeforeDoubleClick委托类型。 在默认双击操作之前双击嵌入的图表时,将发生 BeforeDoubleClick 事件。
public delegate void ChartEvents_BeforeDoubleClickEventHandler(int ElementID, int Arg1, int Arg2, [Runtime::InteropServices::Out] bool % Cancel);
[System.Runtime.InteropServices.ComVisible(false)]
public delegate void ChartEvents_BeforeDoubleClickEventHandler(int ElementID, int Arg1, int Arg2, out bool Cancel);
Public Delegate Sub ChartEvents_BeforeDoubleClickEventHandler(ElementID As Integer, Arg1 As Integer, Arg2 As Integer, ByRef Cancel As Boolean)
参数
- ElementID
- Int32
必填。 双击的对象。
- Arg1
- Int32
取决于 ElementID
。
- Arg2
- Int32
取决于 ElementID
。
- Cancel
- Boolean
可选。 假 的事件发生时。 如果事件过程将此参数设置为 True ,默认的双击操作在完成此过程后,不执行。
- 属性
注解
下表显示了与每个 ElementID
关联的参数。
xlAxis | AxisIndex | AxisType |
xlAxisTitle | AxisIndex | AxisType |
xlDisplayUnitLabel | AxisIndex | AxisType |
xlMajorGridlines | AxisIndex | AxisType |
xlMinorGridlines | AxisIndex | AxisType |
xlPivotChartDropZone | DropZoneType | 无 |
xlPivotChartFieldButton | DropZoneType | PivotFieldIndex |
xlDownBars | GroupIndex | 无 |
xlDropLines | GroupIndex | 无 |
xlHiLoLines | GroupIndex | 无 |
xlRadarAxisLabels | GroupIndex | 无 |
xlSeriesLines | GroupIndex | 无 |
xlUpBars | GroupIndex | 无 |
xlChartArea | 无 | 无 |
xlChartTitle | 无 | 无 |
xlCorners | 无 | 无 |
xlDataTable | 无 | 无 |
xlFloor | 无 | 无 |
xlLegend | 无 | 无 |
xlNothing | 无 | 无 |
xlPlotArea | 无 | 无 |
xlWalls | 无 | 无 |
xlDataLabel | SeriesIndex | PointIndex |
xlErrorBars | SeriesIndex | 无 |
xlLegendEntry | SeriesIndex | 无 |
xlLegendKey | SeriesIndex | 无 |
xlSeries | SeriesIndex | PointIndex |
xlTrendline | SeriesIndex | TrendLineIndex |
xlXErrorBars | SeriesIndex | 无 |
xlYErrorBars | SeriesIndex | 无 |
xlShape | ShapeIndex | 无 |
下表对参数含义进行说明。
AxisIndex | 指定轴主要或辅助。 可以是以下 XlAxisGroup 常量之一: xlPrimary 或 xlSecondary。 |
AxisType | 指定坐标轴类型。 可以是以下 XlAxisType 常量之一: xlCategory、 xlSeriesAxis 或 xlValue。 |
DropZoneType | 指定拖放区域类型: 列、 数据、 页或行字段。 可以是以下 XlPivotFieldOrientation 常量之一: xlColumnField、 xlDataField、 xlPageField 或 xlRowField。 列和行字段常量分别指定系列和分类字段。 |
GroupIndex | 指定集合中 ChartGroups 特定图表组的偏移量。 |
PivotFieldIndex | 指定集合中 PivotFields 特定列 (序列) 、数据、页或行 (类别) 字段的偏移量。 |
PointIndex | 指定集合中序列中 Points 特定点的偏移量。 值 –1 指示已选择所有数据点。 |
SeriesIndex | 指定集合中 Series 特定序列的偏移量。 |
ShapeIndex | 指定集合中特定形状的 Shapes 偏移量。 |
TrendlineIndex | 指定序列中特定趋势线集合 Trendlines 中的偏移量。 |
方法 DoubleClick() 不会导致发生此事件。
用户双击单元格的边框时不触发此事件。