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


IARMap.ARLayer Property (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (PublisherControls)  

IARMap.ARLayer Property

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
);

Product Availability

Available with ArcGIS Desktop. Requires Publisher Extension.

Description

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.

Errors Returned

2021 800A07E5: The specified layer index is invalid 

Remarks

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).

[C#]

In C# use the get_Layer method, as indexed property accessors are not supported.

See Also

IARMap Interface

.NET Samples

ArcReaderControl document properties (Code Files: DocumentProperties)