Modify frame properties


Purpose
This sample demonstrates how to use the Symbology control to modify a frame's properties. This sample uses the Symbology control in conjunction with the PageLayout control, the Toolbar control, and the controls commands.
 
A combo box is populated with background, border, and shadow items. Clicking an item that's displayed in the Symbology control determines whether the item implements IBackground, IBorder, or IShadow; and the Background, Border, or Shadow property (respectively) is set. The frame properties of the MapFrame containing the FocusMap are updated.

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 sample application. The frame is loaded with the PageLayout, TOC, and Toolbar controls, as well as a combo box populated with background, border, and shadow items.
  2. Click Open to load a map document into the PageLayout control.
  3. Select a background, border, or shadow from the combo box. The available symbols are shown in the right panel.
  4. Select a background, border, or shadow symbol. The selected symbol is applied to the frame.


Download the files for Java
symbologybean/ModifyFrameProperties.java Uses the Symbology control to change background, borders, and shadows of the page frame.




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