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

Application1

Returns the application object. It is a read-only property

Count1

Returns the number of layers included in the TopLegend. It is a read-only property.

Parent1

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

Add

Adds a named layer to the legend.

Remove

Removes a named layer from the legend.

SetPosition

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.

See Also

Legend

Legend Layers Page