Programmatically toggle whether a layer is editable or not

213
1
05-23-2022 02:28 AM
DevMallon
New Contributor

Hi All,

I was wondering if anyone would know how to toggle whether a layer is editable or not.

I am building a custom Add-in and would like a way to make a layer editable or uneditable based on layer name.

Thanks

0 Kudos
1 Reply
GKmieliauskas
Esri Regular Contributor

Hi,

It is simple. Use SetEditable method from  layer.

fl.SetEditable(fl.Name == "Blabla");
0 Kudos