Programmatically toggle whether a layer is editable or not

82
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
GintautasKmieliauskas
Regular Contributor

Hi,

It is simple. Use SetEditable method from  layer.

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