LegendLayers Collection
The LegendLayers collection contains all the legend layers for TopLegend objects. It is derived from Shape object.
The following table provides all the properties of the LegendLayers collection:
Property |
Description |
Returns the application object. It is a read-only property |
|
Returns the number of layers included in the TopLegend. It is a read-only property. |
|
Returns the parent object. It is a read-only property. |
The following table provides the methods of the LegendLayers collection:
Method |
Description |
Item*1 |
Returns an individual legend type: PostLegend, SymbologyLegend, or VectorLegend |
Adds a named layer to the legend. |
|
Removes a named layer from the legend. |
|
Moves a single layer's legend to the specified position in the top-level legend. |
Remarks
The visible layer names must be unique for Add and Remove.