ShowColorScale Property

ShowColorScale returns or sets the show color scale bar state. It has a Boolean value. If this value is set to 'True', the color scale bar is visible. If the value is set to 'False', the color scale bar is invisible.

Syntax

object.ShowColorScale

object. ShowColorScale = Show

Parameter

Type

Description

Show

Boolean

required

Remarks

The color scale will not be shown unless a valid color model has been specified. For example, if a vector map's ColorScaleMethod is set to srfVecGrid and a valid grid file is specified, a color scale bar is displayed.

Example 1

This example demonstrates how to return whether or not the color scale bar of a contour map is visible.

Debug.Print ContourLayer.ShowColorScale

Example 2

This example demonstrates how to display the color scale bar of a color relief map.

ColorReliefLayer.ShowColorScale = True

Used by: ColorReliefLayer Object, ContourLayer Object, Surface object, VectorLayer Object, Wireframe object

See Also

Color Scale Bar (Discrete)

Color Scale Bar (Continuous)