Extent view


PurposeThe GxExtentView sample demonstrates how to create a custom view for ArcCatalog. It displays an overview map with a red rectangle on top that delineates the spatial extent of the currently selected dataset. You can add the view as a custom preview, a custom tabbed view, or both.

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.

  1. Register the CustomGxObject_CS.dll. For more information, see "How to register COM components" in the following "See Also" section in this sample.
  2. Start ArcCatalog and browse to <your ArcGIS Developer Kit installation location>/Samples/Data/World.
  3. Select a dataset in the tree view (such as World Cities.lyr).
  4. Select the Extent view (either through preview or from one of the tabs). An overview map of the world shows with a red rectangle that depicts the spatial extent of your selected dataset. Since you are viewing the extent on a world scale, the rectangle depicting your data might be difficult to see if it does not cover a large geographic area.

clsExtentView.cs The class file containing the IGxView implementation.
FrmExtentView.cs The form that contains the Engine map control used for the overview.
Download the C# files
clsExtentView.vb The class file containing the IGxView implementation.
FrmExtentView.vb The form that contains the Engine map control used for the overview.
Download the VB.NET files

Download the files for all languages

See Also:

How to register COM components




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