Public Sub SetEditable( _ ByVal isEditable As Boolean _ )
public void SetEditable( bool isEditable )
Parameters
- isEditable
- A boolean to toggle editability.
Public Sub SetEditable( _ ByVal isEditable As Boolean _ )
public void SetEditable( bool isEditable )
| Exception | Description |
|---|---|
| ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
{
if (!layer.IsVisible)
layer.SetVisibility(true);
if (layer is FeatureLayer featureLayerToChange)
{
if (!featureLayer.IsEditable)
featureLayer.SetEditable(true);
if (!featureLayer.IsSnappable)
featureLayer.SetSnappable(true);
}
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)