Create a custom selection extension by extending ArcObjects
This sample demonstrates how to create ArcGIS Desktop user interface (UI) components by extending ArcObjects. The sample is based on a selection theme, but it also shows multiple ArcObjects components working together. It contains an extension, a dockview, a toolbar with a combo box, a tool palette, a multiItem, several buttons and tools, and a menu. The sample also has several event handlers.
Language: C#, VB
Subject: Framework
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
- Build the solution.
- Start ArcMap and add some data.
- Click the Customize menu, select Toolbars, and click the Selection COM toolbar.
- Click the Customize menu and click Extensions. The Extensions dialog box appears.
- Select the Selection Sample Extension option.
- Use the toggle button to show the dockable window.
- Make a selection using one of the tools.
- Optionally, use the combo box to choose target selection layers.
- Optionally, click the Zoom to layer menu to zoom to a selected layer.
- The dockable window will report the selected features count.
Licensing
| Development licensing |
Deployment licensing |
| ArcGIS Desktop Basic |
ArcGIS Desktop Basic |
| ArcGIS Desktop Standard |
ArcGIS Desktop Standard |
| ArcGIS Desktop Advanced |
ArcGIS Desktop Advanced |