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


IARLayer.ChildARLayer Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (PublisherControls)  

IARLayer.ChildARLayer Property

The child layer at the specifid index of a group layer.

[Visual Basic .NET]
Public Function get_ChildARLayer ( _
    ByVal index As Integer _
) As ARLayer
[C#]
public ARLayer get_ChildARLayer (
    int index
);

Product Availability

Available with ArcGIS Desktop. Requires Publisher Extension.

Description

Returns the specified child layer from a group layer. Use the IsGroupLayer property to determine if a layer is a group layer, and the ARLayerCount property to indicate the number of layers making up a group layer. 

Errors Returned

2021 800A07E5: The specified layer index is invalid 

[C#]

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

See Also

IARLayer Interface | IARLayer.IsGroupLayer Property | IARLayer.ARLayerCount Property