Modify feature layer symbols


Purpose
This sample demonstrates how to use the Symbology control to display marker, line, and fill symbols, then update the symbol used by the renderer of a feature layer. This sample uses the Symbology control in conjunction with the PageLayout control, TOC control, Toolbar control, and the controls commands.

How to use

See How to use ArcGIS samples for help on 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.

  1. Start the ModifyFeatureLayerSymbols sample application.
  2. Click Open to load a map document into the PageLayout control.
  3. Right-click a layer in the TOC. The Layer Symbol Selector dialog box opens.
  4. Select a symbol and click OK. The selected symbol is applied to the layer.


Download the files for Java
symbologybean/ModifyFeatureLayerSymbols.java Uses the Symbology control to change the symbology of the feature layer present in the table of contents (TOC).
symbologybean/ui/SymbologyFrame.java Opens a dialog box with marker, line, or fill symbols (depending on the type of layer selected).




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