TwipsToChartPart Method

       

Identifies a chart part by using the x and y set of coordinates on to identify that part.

Syntax

object.TwipsToChartPart (xVal, yVal, part, index1, index2, index3, index4)

The TwipsToChartPart method syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
xVal,yVal Long. The horizontal and vertical coordinates of the point.
part Integer. A VtChPartType constant that identifies the chart part that is located at the xVal and yVal coordinates.
index1 Integer. If part refers to a series or a data point, this argument specifies which series. Series are numbered in the order their corresponding columns appear in the data grid from left to right, beginning with 1. If part refers to an axis or axis label, this argument identifies the axis type using the VtChAxisId constant.
index2 Integer. If part refers to a data point, this argument specifies which data point in the series identified by index1. Data points are numbered in the order their corresponding rows appear in the data grid from top to bottom, beginning with 1. If part refers to an axis, axis title, or axis label, this argument refers to the axis index which is currently not used. In this case, the only valid value for this argument is 1.
index3 Integer. If part refers to an axis label, this argument refers to the level of the label. Axis label levels are numbered from the axis out, beginning with 1. If part is not an axis label, the argument is unused.
index4 Integer. This argument is unused at this time.