Visual Studio 6.0

Visual Basic: MSChart Control

SelectPart Method

See Also   Example   Applies To

Selects the specified chart part.

Syntax

object.SelectPart (part, index1, index2, index3, index4)

The SelectPart method syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
part Integer. Specifies the chart part. Valid constants are VtChPartType.
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 with a VtChAxisId constant.
index2 Integer. If part refers to a data point, this argument specifies which data point in the series is 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.

Show: