Modify feature layer symbols

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.

  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.

If you installed the samples feature, you will find the files associated with this sample in <Your Developer Kit install location>\DeveloperKit10.4\Java\Samples\ArcObjects.

symbologybean/ Uses the Symbology control to change the symbology of the feature layer present in the table of contents (TOC).
symbologybean/ui/ 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