Add map surrounds


Purpose This sample demonstrates how to use the Symbology control to display north arrow, scale bar, and scale text symbols, which are used by custom commands when adding MapSurround objects to the GraphicsContainer of the PageLayout. 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 running the sample.

  1. Start the sample application.
  2. Click Open to load a map document into the PageLayout control.
  3. Click the Map Surrounds toolbar menu. NorthArrow, ScaleBar and ScaleText are listed.
  4. Click NorthArrow and drag a rectangle on the page layout frame. A dialog box populated with various types of north arrow symbols opens.
  5. Click a north arrow and click OK. The north arrow is added to the page layout.
  6. Repeat steps 3, 4, and 5 using ScaleBar and ScaleText to add a scale bar and scale text to the page layout.





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