Hi,
I'm using this code for to identify the single layer present in 'MapLayers'
```
IMapFeatureLayer[] arrayLayer = currentMap.GetFeatureLayers();
foreach (IMapFeatureLayer layer in arrayLayer)
{
if (layer.LegendText.Equals(layerToRemoved.LegendText))
{
//TODO
}
}
```
In treeview of 'MapLayers', can I block the name of layer as ReadOnly?
Thanks.
Comments: https://github.com/DotSpatial/DotSpatial/issues/750
I'm using this code for to identify the single layer present in 'MapLayers'
```
IMapFeatureLayer[] arrayLayer = currentMap.GetFeatureLayers();
foreach (IMapFeatureLayer layer in arrayLayer)
{
if (layer.LegendText.Equals(layerToRemoved.LegendText))
{
//TODO
}
}
```
In treeview of 'MapLayers', can I block the name of layer as ReadOnly?
Thanks.
Comments: https://github.com/DotSpatial/DotSpatial/issues/750