ArcGIS Explorer Component Help |
ServiceChildLayer..::.Descendants Property |
ServiceChildLayer Class See Also |
Assembly: ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)
Syntax
C# |
---|
public IEnumerable<MapItem> Descendants { get; } |
Visual Basic (Declaration) |
---|
Public ReadOnly Property Descendants As IEnumerable(Of MapItem) |
Field Value
An IEnumerable collection of all descendant MapItems in the ServiceChildLayer; only other ServiceChildLayers may be descendants of ServiceChildLayer.Remarks
This property enables you to retrieve a flattened collection of all items contained by the ServiceChildLayer. The signature takes a derived MapItem Type for consistency with the simlar property implemented on other types of MapItem; however only other ServiceChildLayers may be descendants of ServiceChildLayer.
Use this property if you need to recurse all items in the ServiceChildLayer, including those that are not direct children of the ServiceChildLayer. In this respect, the Descendants property differs from ServiceChildLayer.ChildItems that only returns a collection of the ServiceChildLayers immediate children.
The order of the items in the returned collection is different to the order of items in the DescendantsBottomUp collection. Both properties return the same number of items but Descendants returns a collection where IMapItemParent objects are added before their associated ChildItems. Conversely using the DescendantsBottomUp property will return a collection where IMapItemParent objects are added after their associated ChildItems.
Version Information: This property is supported from version 2.0.0.1500.