ClassColor Property

 

The ClassColor property returns or sets the color of a prism map class. Returns a MVColor.

 

Syntax

object.ClassColor( ClassIndex )

object.ClassColor( ClassIndex ) = Color

 

Parameter

Type

Description

ClassIndex

Integer

required; class number

Color

MVColor

required; color for the class, see remarks

 

Remarks

Use the enumeration [mvColorRed], RGB value [RGB(255,0,0)], or number [255] to set a color.

 

Example 1

This example sets the color of the third class to green.

 

PrismMap.ClassColor(3) = mvColorGreen

 

Example 2

This example returns the color of the third class.

 

Debug.Print PrismMap.ClassColor(3)

 

Used by: PrismMap object