public IReadOnlyList<Layer> GetLayersAsFlattenedList()
Public Function GetLayersAsFlattenedList() As IReadOnlyList(Of Layer)
Return Value
A read only list of layers
public IReadOnlyList<Layer> GetLayersAsFlattenedList()
Public Function GetLayersAsFlattenedList() As IReadOnlyList(Of Layer)
Map map = MapView.Active.Map; IEnumerable<Layer> matches = map.GetLayersAsFlattenedList().Where(l => l.Name.IndexOf(partialName, StringComparison.CurrentCultureIgnoreCase) >= 0);
List<FeatureLayer> featureLayerList = aMap.GetLayersAsFlattenedList().OfType<FeatureLayer>().ToList();
Target Platforms: Windows 10, Windows 8.1, Windows 7