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. 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. 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.


Download the files for Java
cartography/CopySymbolMain.java Class file demonstrating how to copy a symbol from one element to another.




Development licensing Deployment licensing
Engine Developer Kit Engine Runtime
ArcView
ArcEditor
ArcInfo