Skip to content

Files

Latest commit

3c7911e · May 23, 2018

History

History
This branch is 7 commits behind Esri/arcobjects-sdk-community-samples:master.

PageLayoutControlPageAppearance

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jan 12, 2018
Jan 12, 2018
Mar 24, 2017
Jan 12, 2018
May 23, 2018

Modify the appearance of the PageLayoutControl's page

This sample demonstrates how to change the border, background, color, and shadow effects of the PageLayoutControl's page using one, some, or all of the following interfaces: IPage, IFrameProperties, and IPropertySupport.
Language:              C#, VB
Subject:               Controls
Organization:          Esri, http://www.esri.com
Date:                  11/17/2017
ArcObjects SDK:        10.6
Visual Studio:         2015, 2017
.NET Target Framework: 4.5

Resources

Usage

  1. Browse and select a map document to load into the PageLayoutControl.
  2. 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:

See Also

PageLayoutControl class
IPageLayoutControl interface
SymbologyControl class
ISymbologyControl interface


Licensing

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