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.
- Open and compile the sample project in Visual Studio. If necessary, set up ArcMap as the debug application.
- Start ArcMap, click the Customize menu, and click Customize Mode. The Customize dialog box opens.
- Select the .NET Samples category, then drag and drop the FeedBack tool (C#) or Feedback tool (VB .NET) for the sample tool on to a toolbar.
- Activate the tool and click the map to start the new circle feedback. Click again to finish the feedback.
- Press the Ctrl key to randomly change the color of the feedback. The Feedback tool also works in the magnifier or viewer window and on the page layout view.
- Drag and drop the sample Font drop-down (C#) and Font drop-down (VB.NET) tool control onto a toolbar from the Customize dialog box under the .NET Samples category.
- Click the Font drop-down list and scroll through the items. The selected item is drawn with the font.
- Optionally, to use this custom tool control in a similar way as the default Font drop-down list on the Draw toolbar, uncomment the code in the ICommand.OnCreate implementation and recompile. The control listens to document events and is updated according to the default document text font.
FontToolControl.cs | Class implementing a custom font drop-down list tool control. |
ToolSample.cs | Class implementing a feedback tool. |
FontToolControl.vb | Class implementing a custom font drop-down list tool control. |
ToolSample.vb | Class implementing a feedback tool. |
Download the files for all languages
See Also:
How to create a command with a custom interface ToolControlCreating commands and tools
Development licensing | Deployment licensing |
---|---|
ArcGIS for Desktop Basic: ArcScan | ArcGIS for Desktop Basic |
ArcGIS for Desktop Standard | ArcGIS for Desktop Standard |
ArcGIS for Desktop Advanced | ArcGIS for Desktop Advanced |