SampleSpacing Property

 

The SampleSpacing property returns or sets the legend No space between samples option. Returns a Boolean.

 

Syntax

object.SampleSpacing( LayerName )

object.SampleSpacing( LayerName) = Space

 

Parameter

Type

Description

LayerName

String

required; layer name

Space

Boolean

required; true to add spaces between samples

 

Example 1

This example returns the state of legend sample spacing for the layer named Population.

 

Debug.Print Legend.SampleSpacing( "Population" )

 

Example 2

This example adds spaces between the legend samples for the layer named Population.

 

Legend.SampleSpacing( "Population" ) = True

 

Used by: Legend object