How to use
See How to use ArcGIS samples for help on compiling, setting up the debugger, and running the sample. If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.
- Start Visual Studio and open the solution.
- Build the solution.
- Open a MapControl or PageLayoutControl application (or ArcMap).
- From the ToolbarControl Customize dialog box, double-click the Graphics Layers toolset to add the commands to the ToolbarControl.
- Use the graphics layers list to select the active graphics layer and use the New Graphics Layer command to add new graphics layers to the map.
GraphicsLayersListToolCtrl.cs | The implementation file of the ToolControl. |
GraphicsLayersListCtrl.cs | The UserControl, which hosts the graphics layers list. |
GraphicsLayersListCtrl.Designer.cs | The designer file of the UserControl. |
NewGraphicsLayerCmd.cs | The implementation file for the New Graphics Layer command. |
GraphicsLayersToolbar.cs | The toolbar, which hosts the ToolControl and the New Graphics Layer command. |
GraphicsLayersListToolCtrl.vb | The implementation file of the ToolControl. |
GraphicsLayersListCtrl.vb | The UserControl, which hosts the graphics layers list. |
GraphicsLayersListCtrl.Designer.vb | The designer file of the UserControl. |
NewGraphicsLayerCmd.vb | The implementation file for the New Graphics Layer command. |
GraphicsLayersToolbar.vb | The toolbar, which hosts the ToolControl and the New Graphics Layer command. |
Download the files for all languages
See Also:
How to wire ArcObjects .NET eventsIToolControl interface
Development licensing | Deployment licensing |
---|---|
Engine Developer Kit | Engine |
ArcGIS for Desktop Basic | ArcGIS for Desktop Basic |
ArcGIS for Desktop Standard | ArcGIS for Desktop Standard |
ArcGIS for Desktop Advanced | ArcGIS for Desktop Advanced |