SampleOrder Property

 

The SampleOrder property returns or sets the legend Sample order. Returns a Boolean.

 

Syntax

object.SampleOrder( LayerName )

object.SampleOrder( LayerName) = Ascend

 

Parameter

Type

Description

LayerName

String

required; layer name

Ascend

Boolean

required; true for ascending order false for descending order

 

Example 1

This example returns the legend sample order for the layer named Population.

 

Debug.Print Legend.SampleOrder("Population")

 

Example 2

This example sets the sample order for the legend to descending for the layer named Population.

 

Legend.SampleOrder("Population") = False

 

Used by: Legend object