ArcEngine二次开发,如何判断图层是否可编辑

// Enable/disable controls according to whether the layer is read-only 
if((li.layerAttr & 0x00000001) > 0) // FILE_ATTRIBUTE_READONLY 

DisableControls(); 
cboTasks.SelectedIndex = 0; 
if (Form.ActiveForm != null) 
Form.ActiveForm.Text = "Map Editing *** Read-Only Layer ***"; } 
else { 
SetControlStates(); 
if (frmMapEditing.ActiveForm != null) 
frmMapEditing.ActiveForm.Text = "Map Editing"; }
 
上面的实例感觉有点复杂
 
已邀请:

朱新颖

赞同来自:

IEngineEditLayers.IsEditable可以判断是否可以编辑。

要回复问题请先登录注册