Swap Method

3D Graph Control

Swap Method

Syntax

CWValuePairs.Swap element1, element2

Purpose

Swaps two CWValuePair elements, altering their indices.

Parameters

element1 As Variant

Index of a value pair to be swapped

element2 As Variant

Index of a second value pair to be swapped

Example

'Swap value pairs 1 and 2
CWGraph3D1.Axes.Item(1).ValuePairs.Swap 1, 2