The ShowClassHits property returns or sets the Show class hits option in a legend. Returns a Boolean.
Syntax
object.ShowClassHits( LayerName )
object.ShowClassHits( LayerName ) = ShowClassHits
Parameter |
Type |
Description |
LayerName |
String |
required; layer name |
ShowClassHits |
Boolean |
required; true to show the number of objects in each class |
Example
'ShowClassHits
'Show the counts for each class in the legend for the hatch map layer
Legend.ShowClassHits("Layer #1") = True
Used by: Legend object