How to use
See How to use ArcGIS samples for help on compiling, setting up the debugger, and 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.
- Browse and select a map document to load into the PageLayoutControl.
- Change the page border, background, color, and shadow properties by double-clicking a symbol.
Additional information
The Browse dialog box allows you to search and select map documents that are validated and loaded into the PageLayoutControl using the CheckMxFile and LoadMxFile methods. The visible extent of the PageLayout is set with the ZoomToWholePage method and the TrackRectangle and Pan methods in the OnMouseDown event to zoom in and pan the display.
The LoadStyleFile method and StyleClass property are used in the Form_Load event to display the contents of a SymbologyStyleClass (Borders, Backgrounds, Colors, and Shadows) from the ESRI.ServerStyle file into each of the SymbologyControls.
When you double-click a symbol in a SymbologyControl, the GetSelectedItem method is used to get the selected symbol, which is applied to the PageLayoutControl's page in one of the following ways:
- Using the IPage Border, Background, and BackgroundColor properties.
- Using the IFrameProperties Border, Background, and Shadow properties.
- Using the IPropertySupport interface to see whether the symbol can be applied.
AssemblyInfo.cs | Assembly information. |
PageAppearance.cs | Form file. |
AssemblyInfo.vb | Assembly information. |
PageAppearance.vb | Form file. |
Download the files for all languages
See Also:
PageLayoutControl classIPageLayoutControl interface
SymbologyControl class
ISymbologyControl interface
Development licensing | Deployment licensing |
---|---|
Engine Developer Kit | Engine |
ArcGIS for Desktop Basic | |
ArcGIS for Desktop Standard | |
ArcGIS for Desktop Advanced |