Edytuj

Udostępnij za pośrednictwem


ChartEvents_BeforeDoubleClickEventHandler Delegate

Definition

A Delegate type used to add an event handler for the BeforeDoubleClick event. The BeforeDoubleClick event occurs when an embedded chart is double-clicked, before the default double-click action.

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)

Parameters

ElementID
Int32

Required. The double-clicked object.

Arg1
Int32

Depends on ElementID.

Arg2
Int32

Depends on ElementID.

Cancel
Boolean

Optional. False when the event occurs. If the event procedure sets this argument to True, the default double-click action isn't performed when the procedure is finished.

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.

The DoubleClick() method doesn't cause this event to occur.

This event doesn't occur when the user double-clicks the border of a cell.

Applies to