The Legend control allows you to display a description and corresponding symbol as an explanatory key for a Map.


The following tables list the members exposed by Legend.

Public Constructors

  Name Description
Public method Legend Initializes a new instance of the Legend class.
Top

Public Properties

  Name Description
Public property Count Returns the number of items in the Legend.
Public property IconHeight Gets or sets the height of symbol icons in pixels.
Public property IconWidth Gets or sets the width of symbol icons in pixels.
Public property Item Returns a specific item of the Legend, by ordinal index (zero-based).
Top

Public Methods

  Name Description
Public method Add Overloaded. Adds an item to the Legend.
Public method Clear Removes all items of a Legend.
Public method Insert Inserts an item at a specified index in a Legend object.
Public method Populate The Populate method populates the Legend with data only for visible layers/features contained in a Map.
Public method PopulateAll The PopulateAll method populates the Legend with data for all layers/features contained in a Map.
Public method Remove Removes the specified item from the Legend.
Top

See Also