This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > PublisherControls > ESRI.ArcGIS.PublisherControls > Interfaces > IA > IARMap Interface > IARMap.ARLayer Property (ArcObjects .NET 10.5 SDK) |
The layer at the specified index.
[Visual Basic .NET] Public Function get_ARLayer ( _ ByVal index As Integer _ ) As ARLayer
[C#] public ARLayer get_ARLayer ( int index );
Returns the ARLayer at the specified index in the ARMap's layer collection. Each ARMap object manages a number of ARLayer objects that are present at the time the PMF document is published.
2021 800A07E5: The specified layer index is invalid
Use a zero-based index to access an ARLayer. For example, to get the first ARLayer in the layer collection, pass an index of 0, and to get the last ARLayer in the layer collection, pass an index of (ARLayerCount - 1).
In C# use the get_Layer method, as indexed property accessors are not supported.