This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IF > IField Interface > IField.Editable Property (ArcObjects .NET 10.4 SDK) |
Indicates if the field is editable.
[Visual Basic .NET] Public ReadOnly Property Editable As Boolean
[C#] public bool Editable {get;}
[C++]
HRESULT get_Editable(
VARIANT_BOOL* IsEditable
);
[C++]
Parameters IsEditable [out, retval] IsEditable is a parameter of type VARIANT_BOOL
The Editable property of a field should always be set to TRUE. Setting it to FALSE will prevent all users from editing the contents of the field. To set a field to be read-only, use the IFieldInfo3.ReadOnly property.
It is best to loop through the fields of a feature and skip the fields that are not editable, rather than allowing users to attempt to edit fields that cannot be edited.