NodeColors Property

 

The NodeColors property returns the node colors in a color spectrum. Returns an array of longs.

 

Syntax

Object.NodeColors

 

Example

This example demonstrates how to return the color spectrum node positions. The first two statements create an array of longs named NodeColors then store the node positions of the color spectrum within the array. The remaining statements allow all the node positions of any color spectrum to be returned.

 

Dim NodeColors() As Long

Set NodeColors() = ColorMap.NodeColors

 

Dim FirstNode As Integer

FirstNode = LBound(NodeColors)

Dim LastNode As Integer

LastNode = UBound(NodeColors)

Dim NodeNumber as Integer

For NodeNumber = FirstNode to LastNode step 1

 Debug.Print NodeColors(NodeNumber)

Next NodeNumber

 

Used by: ColorSpectrum object