Share via


ChartEvents_BeforeDoubleClickEventHandler 委托

定义

用于为事件添加事件处理程序的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关联的参数。

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 中的偏移量。

方法 DoubleClick() 不会导致发生此事件。

用户双击单元格的边框时不触发此事件。

适用于