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


IEnumLayer Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IE > IEnumLayer Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Carto)  

IEnumLayer Interface

Provides access to members that allow iteration through a set of layers.

Product Availability

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

Members

Name Description
Method Next The next layer in the set.
Method Reset Resets iterator to first layer in the set.

CoClasses that implement IEnumLayer

CoClasses and Classes Description
TemporalLayerEnum (esriTrackingAnalyst) A container for providing temporal layers.

Remarks

IEnumLayer provides access to an enumeration of layers as would be returned by IMap::Layers.

.NET Snippets

Draw Globe Layers in Correct Order | Do Identify | Loop Through Layers of Specific UID | Zoom to Selected Globe Features | Create Group Layer Animation

.NET Samples

ArcGIS Network Analyst extension Engine application (Code Files: frmLoadLocations) | Dynamic display layer (Code Files: AddMyDynamicLayerCmd) | Load network layer from active analysis to the table of contents (Code Files: LoadNetworkLayerFromActiveAnalysisToTOC) | Create a geoprocessing tool to buffer a layer and retrieve messages (Code Files: BufferDlg) | Utility wizard for basic schematic datasets configuration (Code Files: GenerateSchematicTemplate) | Selection restriction evaluator (Code Files: SelectionRestrictionEvaluator) | Updating the purge rule on a real-time temporal layer (Code Files: PurgeRuleForm TAPurgeRuleCmd) | Layer filtering TOC view (Code Files: TOCLayerFilter) | Graphics layers ToolControl (Code Files: GraphicsLayersListCtrl) | Custom scene navigation commands (Code Files: SelectFeatures) | Subset network evaluators (Code Files: SubsetHelperUI) | RSS weather layer (Code Files: AddRSSWeatherLayer AddWeatherItemCmd AddWeatherItemTool RefreshLayerCmd RSSLayerProperties SelectByCityName) | Multivariate renderer (Code Files: PropPageForm) | Custom selection extension (Code Files: SelectionExtension) | Create camera flyby from path (Code Files: frmCameraPath) | Retrieve a color ramp from the SymbologyControl (Code Files: ColorRamps) | Create a custom selection extension by extending ArcObjects (Code Files: SelectionExtension) | Schematic diagram auto refresh (Code Files: FormAutorefresh) | Temporal statistics (Code Files: MainForm)

.NET Related Topics

Add-in coding patterns | Converting labels to geodatabase annotation for a single layer | Converting labels to geodatabase annotation for an entire map | GlobeCore | How to access maps and layers via the MapDocument | How to access maps and layers via the MxDocument | How to add different types of layers to a map | How to drop data onto the MapControl | How to get and set the drawing order of layers in globe | How to zoom to selected features in globe