Name
chart.GetChartElement(x, y, ElementID, Arg1, Arg2)
Synopsis
Gets information about the chart object at specific screen coordinates.
|
Argument |
Settings |
|---|---|
|
|
The x-coordinate of the object. |
|
|
The y-coordinate of the object. |
|
|
An |
|
|
Information about the object. See Table 16-1. |
|
|
Information about the object. See Table 16-1. |
The x and y arguments are input arguments; ElementID, Arg1, and Arg2 are output arguments. The meaning of the output arguments varies based on the type of object (x, y); Table 16-1 describes those returned values.
Table 16-1. Meaning of GetChartElement output arguments
|
If ElementID is... |
then Arg1 is... |
and Arg2 is... |
|---|---|---|
|
|
xlAxisGroup |
xlAxisType |
|
xlPivotChartDropZone |
xlPivotFieldOrientation |
Not set |
|
xlPivotChartFieldButton |
xlPivotFieldOrientation |
The index of the column in the |
|
|
The index of the group within the |
Not set |
|
|
Not set |
Not set |
|
|
The index of the series in the |
The index of the point in the |
|
|
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access