Copy and paste a symbol


Purpose
This sample demonstrates how to copy a symbol from one element to another. The macros in this sample can be added to the Element Context menu, so that they are available when you right-click an element.
This sample works with the following:
  • MarkerElements
  • LineElements
  • TextElements
  • FillShapeElements

How to use

See How to use ArcGIS samples for help on running the sample.

  1. Run the sample application. The application allows you to copy and paste a symbol.
  2. Right-click an element and choose Copy Symbol.
  3. To paste the symbol to another element (or elements) of the same type, select the element(s), right-click, and click Paste Symbol.

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.

cartography/CopySymbolMain.java Class file demonstrating how to copy a symbol from one element to another.




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