This document is archived and information here might be outdated.  Recommended version.


Legend CoClass (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

Legend CoClass

A map surround for displaying a legend.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Interfaces

Interfaces Description
IActiveViewEvents Provides access to events that occur when the state of the active view changes.
IBoundsProperties Provides access to members that control Bounds Properties.
IClone (esriSystem) Provides access to members that control cloning of objects.
IConnectionPointContainer Supports connection points for connectable objects.
IGraphicsComposite Provides access to members that control objects that are composed of graphic elements.
ILegend Provides access to members that control a legend.
ILegend2 Provides access to additional members that control a legend.
IMapSurround Provides access to members that control the map surround.
IPersist Defines the single method GetClassID, which is designed to supply the CLSID of an object that can be stored persistently in the system. IPersist is the base interface for three other interfaces: IPersistStorage, IPersistStream, and IPersistFile.
IPersistStream (esriSystem)
IPropertySupport (esriSystem) Provides access to members that set a default property on an object.
IQuerySize Provides access to means to getting the size of an element.
IReadingDirection Provides access to members that control the reading direction.
ITransformEvents (esriDisplay) Provides access to members that control Transform Events.

Event Interfaces

Interfaces Description
IMapSurroundEvents (default) Provides access to events that occur when the state of the map surrounds changes.

Working with Events

[Visual Basic 6.0]

When working with Legend's default outbound interface in Visual Basic 6 declare variables as follows:

Private WithEvents pLegend as Legend