Aarcgisprosdk10.8 Release
5ac5058d创建于 2020年2月21日历史提交
文件最后提交记录最后更新时间
6 年前
6 年前
9 年前
6 年前
6 年前
README

Feature editing with the control commands

This sample demonstrates feature editing using the control commands in conjunction with the ToolbarControl and MapControl.
 
The AddItem method is used within the Form_Load event to add new feature editing commands to the ToolbarControl with their Style set. A Sketch menu and Vertex menu are added to ToolbarMenu's using the AddItem method. Within the MapControl's OnMouseDown event, the PopupMenu method is used to display the appropriate ToolbarMenu when the right mouse button has been clicked.
 
The editing properties used by the feature editing commands in the ToolbarControl and the ToolbarMenu are determined by the IEditProperties and IEditProperties2 interface members implemented by the EngineEditor object. The EditProperties and EditProperties2 forms are used to manage and validate changes to these properties by the end user.
 
Note: If you are editing features from a shapefile or a personal geodatabase, the minimum license required to initialize this application is an ArcGIS Engine or ArcGIS Desktop Basic license. If you are editing features from an enterprise geodatabase, the minimum license required to initialize this application is an ArcGIS Engine Enterprise GeoDatabase or ArcGIS Desktop Standard license. Before running this application, check the product licenses in the LicenseControl property pages accordingly.
Language:              C#, VB
Subject:               Controls
Organization:          Esri, http://www.esri.com
Date:                  10/17/2019
ArcObjects SDK:        10.8
Visual Studio:         2017, 2019
.NET Target Framework: 4.5

Resources

Usage

  1. Browse to a map document to load into the MapControl.
  2. Use the commands on the ToolbarControl to sketch new features, update existing features, update parts of a sketch, or update attributes.
  3. Right-click the MapControl to access the Sketch context menu.
  4. Click the Option buttons to change the edit properties.

See Also

EngineEditor class
IEngineEditProperties interface
IEngineEditProperties2 interface


Licensing

Development licensing Deployment licensing
Engine Developer Kit Engine
ArcGIS Desktop Basic
ArcGIS Desktop Standard
ArcGIS Desktop Advanced